mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 11:03:59 +00:00
- 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
35 lines
1.5 KiB
Bash
35 lines
1.5 KiB
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
export KUBECONFIG=/Users/chrisfu/dev/prole/prole-k3s.kubeconfig
|
|
cd /Users/chrisfu/dev/prole
|
|
|
|
echo "==> Killing any running installer..."
|
|
pkill -f "install.sh" 2>/dev/null || true
|
|
pkill -f "init_gitlab.sh" 2>/dev/null || true
|
|
sleep 3
|
|
|
|
echo "==> Deleting PVs with old claimRefs..."
|
|
for pv in gitlab-gitaly-synology gitlab-minio-synology; do
|
|
kubectl patch pv "$pv" -p '{"metadata":{"finalizers":[]}}' --type=merge 2>/dev/null || true
|
|
kubectl delete pv "$pv" --ignore-not-found 2>/dev/null || true
|
|
done
|
|
|
|
echo "==> Wiping synology gitlab dirs..."
|
|
kubectl -n knoe-system run wipe-gitlab --image=alpine:latest --restart=Never --rm --attach \
|
|
--overrides='{"spec":{"nodeName":"gandalf.prole.org","tolerations":[{"operator":"Exists"}],"volumes":[{"name":"s","hostPath":{"path":"/synology/d005","type":"Directory"}}],"containers":[{"name":"w","image":"alpine:latest","command":["sh","-c","rm -rf /s/gitlab && echo wiped"],"volumeMounts":[{"name":"s","mountPath":"/s"}]}]}}' 2>&1 || true
|
|
|
|
echo "==> Removing stale PID..."
|
|
rm -f install.pid
|
|
|
|
echo "==> Verifying namespace fix in prole.cfg..."
|
|
grep "gitops.gitlab_namespace" conf/service/prole.cfg
|
|
|
|
echo "==> Verifying init_gitlab.sh lint..."
|
|
bash -n etc/init_gitlab.sh && echo " syntax OK"
|
|
|
|
echo "==> Launching installer..."
|
|
mkdir -p logs
|
|
nohup bash install.sh --silent -c conf/service/prole.cfg > logs/install_final4.log 2>&1 &
|
|
disown
|
|
echo "Installer started. Monitor: tail -f logs/install_final4.log"
|