fail start script if caddy is not installed

This commit is contained in:
Viktor Barzin 2025-06-14 15:52:27 +00:00
parent 1b97cf0dc3
commit 0dc6a30dbd
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863

View file

@ -17,6 +17,12 @@ set -eux
# Kill any existing caddy servers
sudo pkill -f 'caddy'
# Fail if caddy is not installed
if ! command -v caddy &> /dev/null; then
echo "Error: caddy is not installed. Please install caddy and try again"
exit 1
fi
pwd=$PWD
caddy_dir="$pwd/caddy_dev"