Skip to content

Instantly share code, notes, and snippets.

@UnixSage
Last active January 28, 2022 22:58
Show Gist options
  • Save UnixSage/a6ec9ce60c657ba4d4f3c790c93825ca to your computer and use it in GitHub Desktop.
Save UnixSage/a6ec9ce60c657ba4d4f3c790c93825ca to your computer and use it in GitHub Desktop.
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