Last active
January 28, 2022 22:58
-
-
Save UnixSage/a6ec9ce60c657ba4d4f3c790c93825ca to your computer and use it in GitHub Desktop.
Manual Script for CertBot for manual DNS Changes...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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