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:
+1
-1
@@ -38,7 +38,7 @@ EOF
|
||||
chmod +x "$REPO_ROOT/scripts/deploy-$APP.sh"
|
||||
|
||||
echo "Adding $APP to deploy-dispatch.sh..."
|
||||
sed -i "/^ \*)$/i\\ deploy-$APP) /opt/hantim/scripts/deploy-$APP.sh ;;" \
|
||||
sed -i "/^ \*)$/i\\ deploy-$APP) sudo /opt/hantim/scripts/deploy-$APP.sh ;;" \
|
||||
"$REPO_ROOT/scripts/deploy-dispatch.sh"
|
||||
|
||||
echo "Creating .gitea/workflows/deploy-$APP.yml..."
|
||||
|
||||
Reference in New Issue
Block a user