fix(deploy): use sudo for systemctl restart ims

This commit is contained in:
2026-07-28 16:26:58 +08:00
parent 6b427b840d
commit 1103d842d5
+1 -1
View File
@@ -17,6 +17,6 @@ echo "==> Syncing to VPS..."
rsync -az --delete --exclude='.env' -e "ssh -p ${VPS_SSH_PORT}" .next/standalone/ "$VPS:$REMOTE_DIR/" rsync -az --delete --exclude='.env' -e "ssh -p ${VPS_SSH_PORT}" .next/standalone/ "$VPS:$REMOTE_DIR/"
echo "==> Restarting service on VPS..." echo "==> Restarting service on VPS..."
ssh -p "${VPS_SSH_PORT}" "$VPS" "systemctl restart ims" ssh -p "${VPS_SSH_PORT}" "$VPS" "sudo systemctl restart ims"
echo "==> Done. https://ims.setia.com.my/" echo "==> Done. https://ims.setia.com.my/"