From 8831fc3acd2a40a0ac8f5774934a34a40ac1ec5c Mon Sep 17 00:00:00 2001 From: LCincognito <79568956+LCincognito@users.noreply.github.com> Date: Wed, 24 Feb 2021 17:28:14 +0900 Subject: [PATCH] master file certbot auto renew shellsciprt for centos8 with nginx. You can use cron on this. --- certbotautorenew4centoswithnginx.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 certbotautorenew4centoswithnginx.sh diff --git a/certbotautorenew4centoswithnginx.sh b/certbotautorenew4centoswithnginx.sh new file mode 100644 index 0000000..f840e96 --- /dev/null +++ b/certbotautorenew4centoswithnginx.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# これはコメントです +# echo "コメントは実行されません!" + +systemctl stop nginx.service +wait +certbot-auto renew +wait +systemctl start nginx.service \ No newline at end of file