salt/states/roles/maintain/certbot/certbot.sh

7 lines
337 B
Bash
Raw Normal View History

2017-08-07 13:25:01 -05:00
echo "Running certbot renew" > /root/scripts/certbot.log
/bin/certbot renew >> /root/scripts/certbot.log
echo "Finished certbot renew" >> /root/scripts/certbot.log
echo "Copying certs to /secure" >> /root/scripts/certbot.log
cp -rL /etc/letsencrypt/live/* /secure/certs/
echo "Done copying certs to /secure" >> /root/scripts/certbot.log