Skip to content

Instantly share code, notes, and snippets.

@abhas
Last active July 25, 2017 06:23
Show Gist options
  • Save abhas/7be0d55d163396794192fa902d55bc4c to your computer and use it in GitHub Desktop.
Save abhas/7be0d55d163396794192fa902d55bc4c to your computer and use it in GitHub Desktop.
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