prole/tmp/kill_and_restart.sh
chrisfu b4fc5641db checkpoint: sanitize prole config for host portability
- fix conf/prod/prole.cfg by replacing hardcoded /Users/chrisfu paths with /Users/chrisfu

- remove injected [update.sh] log lines and stray password artifacts so config is executable

- include latest pending updates across deployment config, UI/core flow, vault/network artifacts, and helper scripts
2026-04-10 05:58:40 -07:00

29 lines
1.3 KiB
Bash

#!/usr/bin/env bash
export KUBECONFIG=/Users/chrisfu/dev/prole/prole-k3s.kubeconfig
cd /Users/chrisfu/dev/prole
echo "==> Killing running installer processes..." && \
pkill -f "install.sh" 2>/dev/null || true && \
pkill -f "init_gitlab.sh" 2>/dev/null || true && \
sleep 3
echo "==> Cleaning misrouted gitea gitlab namespace..." && \
kubectl get namespace gitea -o json 2>/dev/null \
| python3 -c "import sys,json; d=json.load(sys.stdin); d['spec']['finalizers']=[]; print(json.dumps(d))" \
| kubectl replace --raw /api/v1/namespaces/gitea/finalize -f - 2>/dev/null || true && \
kubectl delete namespace gitea --ignore-not-found --timeout=30s 2>/dev/null || true && \
kubectl delete pv gitlab-gitaly-synology gitlab-minio-synology --ignore-not-found 2>/dev/null || true
echo "==> Removing stale PID lock..." && \
rm -f /Users/chrisfu/dev/prole/install.pid
echo "==> Verifying namespace config:" && \
grep -E "gitops\.(namespace|gitlab_namespace)|GITLAB_NAMESPACE" \
/Users/chrisfu/dev/prole/conf/service/prole.cfg
echo "==> Launching final install run (gitlab namespace)..." && \
mkdir -p logs && \
nohup bash install.sh --silent -c conf/service/prole.cfg \
> logs/install_final2.log 2>&1 & disown && \
echo "Installer started. Monitor: tail -f logs/install_final2.log"