Last active
July 25, 2017 06:23
-
-
Save abhas/7be0d55d163396794192fa902d55bc4c to your computer and use it in GitHub Desktop.
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
cd /var/tmp/webroot/ || exit | |
python3 -m http.server --bind xx.xx.xx.xx 80 & | |
pid=$! | |
letsencrypt certonly --webroot | |
kill $pid | |
sleep 0.5 | |
kill -0 $pid && kill -9 $pid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment