Skip to content

Commit

Permalink
Update certbot.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hamburml committed Jan 19, 2017
1 parent 78906e6 commit 3dda8c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion certbot.sh
Expand Up @@ -41,7 +41,12 @@ until [ $COUNTER -lt 1 ]; do
done

#prepare renewcron
printf "SHELL=/bin/sh\nPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin\nPROXY_INSTANCE_NAME=$PROXY_INSTANCE_NAME\nCERTBOTMODE=$CERTBOTMODE\n" > /etc/cron.d/renewcron
if [ "$CERTBOTMODE" ]; then
printf "SHELL=/bin/sh\nPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin\nPROXY_INSTANCE_NAME=$PROXY_INSTANCE_NAME\nCERTBOTMODE=$CERTBOTMODE\n" > /etc/cron.d/renewcron
else
printf "SHELL=/bin/sh\nPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin\nPROXY_INSTANCE_NAME=$PROXY_INSTANCE_NAME\n" > /etc/cron.d/renewcron
fi


declare -a arr=$CERTBOT_CRON_RENEW;
for i in "${arr[@]}"
Expand Down

0 comments on commit 3dda8c7

Please sign in to comment.