13 lines
218 B
Bash
Executable File
13 lines
218 B
Bash
Executable File
#!/bin/sh
|
|
set -x
|
|
|
|
killall -9 openresty
|
|
#openresty -s stop
|
|
certbot renew
|
|
#nginx -s stop
|
|
killall -9 nginx
|
|
openresty
|
|
|
|
# crontab里面的命令:
|
|
# 0 1 * * * su alchemy -c "sudo /home/alchemy/resty_functions/renew_cert.sh"
|