Files
resty_functions/renew_cert.sh
T
2024-02-13 21:17:36 +08:00

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"