Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Manual Script for CertBot for manual DNS Changes...
#!/bin/sh
echo "Domain: _acme-challenge.${CERTBOT_DOMAIN}" > /tmp/Manual.log
echo "Secret: ${CERTBOT_VALIDATION}" >> /tmp/Manual.log
echo "Looking for /tmp/done.$$" >> /tmp/Manual.log
while [ ! -f /tmp/done.$$ ]
do
sleep 2
done
if [ -f /tmp/done.$$ ] ; then
rm -v /tmp/done.$$
echo "Success"
exit 0
else
echo "Failed"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment