fix install
This commit is contained in:
@@ -21,5 +21,14 @@ stop_pid_file() {
|
||||
stop_pid_file "$ROOT_DIR/.api.pid" "API server"
|
||||
stop_pid_file "$ROOT_DIR/.vite.pid" "Vite server"
|
||||
|
||||
# ── If installed as a systemd service, restart that instead ──────────────────
|
||||
if command -v systemctl >/dev/null 2>&1 && systemctl list-unit-files study-app.service >/dev/null 2>&1; then
|
||||
echo "Found study-app systemd service — restarting it..."
|
||||
sudo systemctl restart study-app
|
||||
sleep 1
|
||||
systemctl status study-app --no-pager -l
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Restarting via setup.sh..."
|
||||
exec "$ROOT_DIR/setup.sh"
|
||||
Reference in New Issue
Block a user