Files
justice/scripts/deploy-nginx.sh
T
2026-04-24 08:25:30 +00:00

9 lines
285 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
SRC="$(cd "$(dirname "$0")/.." && pwd)/nginx/srv1361159.hstgr.cloud"
DST="/etc/nginx/sites-available/srv1361159.hstgr.cloud"
install -o root -g root -m 644 "$SRC" "$DST"
nginx -t
systemctl reload nginx
echo "OK: deployed $SRC -> $DST and nginx reloaded."