use sudo for deploy scripts instead of chown on repo

The deploy user runs scripts as root via passwordless sudo,
avoiding ownership conflicts with Docker-mounted volumes.
This commit is contained in:
2026-03-13 15:58:42 -04:00
parent e53ac6324a
commit a3cb7680f3
3 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
set -euo pipefail
case "$SSH_ORIGINAL_COMMAND" in
deploy-nginx) /opt/hantim/scripts/deploy-nginx.sh ;;
deploy-timothykim) /opt/hantim/scripts/deploy-timothykim.sh ;;
deploy-nginx) sudo /opt/hantim/scripts/deploy-nginx.sh ;;
deploy-timothykim) sudo /opt/hantim/scripts/deploy-timothykim.sh ;;
*)
echo "Unknown command: $SSH_ORIGINAL_COMMAND"
echo "Available: deploy-nginx, deploy-timothykim"