Skip to content

Instantly share code, notes, and snippets.

@JacobDB
Created November 16, 2018 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JacobDB/58338bf4f389827bb2f79ac81796a170 to your computer and use it in GitHub Desktop.
Save JacobDB/58338bf4f389827bb2f79ac81796a170 to your computer and use it in GitHub Desktop.
Simple bash script to disable UFW, renew Lets Encrypt certificates, restart GitLab nginx, and re-enable UFW
ufw disable
certbot renew --renew-hook "/usr/bin/gitlab-ctl restart nginx"
ufw --force enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment