Fix auth landing flow and up.sh service fallback

This commit is contained in:
Jage9
2026-02-24 22:21:38 -05:00
parent d7be6d999a
commit b424a0ae34
7 changed files with 11 additions and 54 deletions

View File

@@ -5,6 +5,9 @@ REPO_ROOT="${1:-/home/bestmidi/chgrid}"
PUBLISH_DIR="${2:-/home/bestmidi/public_html/chgrid}"
BASE_PATH="${3:-/chgrid/}"
SERVICE_NAME="${4:-chat-grid.service}"
if [[ -z "${SERVICE_NAME// }" || "$SERVICE_NAME" == "-" || "$SERVICE_NAME" == ".service" ]]; then
SERVICE_NAME="chat-grid.service"
fi
"$REPO_ROOT/deploy/scripts/deploy_client.sh" "$REPO_ROOT" "$PUBLISH_DIR" "$BASE_PATH"
sudo systemctl restart "$SERVICE_NAME"