Skip to content

Instantly share code, notes, and snippets.

@Justman100
Last active December 29, 2024 14:50
Show Gist options
  • Save Justman100/8e3fcd03ea9435d4d9b9c46a6d8f3736 to your computer and use it in GitHub Desktop.
Save Justman100/8e3fcd03ea9435d4d9b9c46a6d8f3736 to your computer and use it in GitHub Desktop.
Script to control Caddy (ManageCaddy)
#/bin/bash
cd /home
caddy fmt --overwrite
[[ -z $(lsof -ti:80) ]] && caddy reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment