Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
elsonwx authored Jun 15, 2017
1 parent a6023c2 commit 82d848b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions https_website_easy_install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ cat /tmp/signed.crt intermediate.pem > $web_dir/certificate/chained.pem
service nginx reload
EOF
# (crontab -u $current_user -l ; echo "1 1 1 * * bash $web_dir/certificate/renew_cert.bash >> /var/log/renew_cert_error.log 2 >> /var/log/renew_cert.log") | crontab -u $current_user -
# echo -e "\n1 1 1 * * root bash $web_dir/certificate/renew_cert.bash >> /var/log/renew_cert_error.log 2 >> /var/log/renew_cert.log" >> /etc/crontab
# nginx reload need root privilege,so the renew task need to be added in root's crontab
(crontab -l; echo "1 1 1 * * bash $web_dir/certificate/renew_cert.bash >> /var/log/renew_cert_error.log 2 >> /var/log/renew_cert.log") | crontab -
echo "create renewal certificate task succ!"
Expand Down

0 comments on commit 82d848b

Please sign in to comment.