change repo path from /opt to /opt/hantim

/opt already exists on Linux systems and git clone refuses to clone
into a non-empty directory.
This commit is contained in:
2026-03-13 11:52:51 -04:00
parent 1220698292
commit 7a5de9be6d
6 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
set -euo pipefail
case "$SSH_ORIGINAL_COMMAND" in
deploy-nginx) /opt/scripts/deploy-nginx.sh ;;
deploy-timothykim) /opt/scripts/deploy-timothykim.sh ;;
deploy-nginx) /opt/hantim/scripts/deploy-nginx.sh ;;
deploy-timothykim) /opt/hantim/scripts/deploy-timothykim.sh ;;
*)
echo "Unknown command: $SSH_ORIGINAL_COMMAND"
echo "Available: deploy-nginx, deploy-timothykim"
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/bash
cd /opt && git pull && cd docker/nginx && docker compose pull && docker compose up -d
cd /opt/hantim && git pull && cd docker/nginx && docker compose pull && docker compose up -d
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/bash
cd /opt && git pull && cd docker/timothykim.net && docker compose pull && docker compose up -d
cd /opt/hantim && git pull && cd docker/timothykim.net && docker compose pull && docker compose up -d
+2 -2
View File
@@ -33,12 +33,12 @@ EOF
echo "Creating scripts/deploy-$APP.sh..."
cat > "$REPO_ROOT/scripts/deploy-$APP.sh" <<EOF
#!/bin/bash
cd /opt && git pull && cd docker/$APP && docker compose pull && docker compose up -d
cd /opt/hantim && git pull && cd docker/$APP && docker compose pull && docker compose up -d
EOF
chmod +x "$REPO_ROOT/scripts/deploy-$APP.sh"
echo "Adding $APP to deploy-dispatch.sh..."
sed -i "/^ \*)$/i\\ deploy-$APP) /opt/scripts/deploy-$APP.sh ;;" \
sed -i "/^ \*)$/i\\ deploy-$APP) /opt/hantim/scripts/deploy-$APP.sh ;;" \
"$REPO_ROOT/scripts/deploy-dispatch.sh"
echo "Creating .gitea/workflows/deploy-$APP.yml..."