Simplify Athena operator architecture
This commit is contained in:
+11
-3
@@ -285,10 +285,18 @@ install_stack_files() {
|
||||
log "Stackdateien installieren"
|
||||
XTTS_CACHE_DIR=${XTTS_CACHE_DIR:-$MODEL_DIR/xtts-v2-cache}
|
||||
install -d -m 0755 "$STACK_DIR" "$MODEL_DIR" "$XTTS_CACHE_DIR" "$STATE_DIR/backups"
|
||||
rsync -a --delete --exclude .git --exclude '*.local.*' \
|
||||
--exclude config/install.env "$ROOT_DIR/" "$STACK_DIR/"
|
||||
# /opt/mike-ai/stack is both the live stack and the one canonical Git
|
||||
# checkout. Copying everything except .git created two competing source
|
||||
# trees and made agents reconstruct deployment state on every change.
|
||||
if [[ $(realpath "$ROOT_DIR") != $(realpath "$STACK_DIR") ]]; then
|
||||
rsync -a --delete --exclude '*.local.*' \
|
||||
--exclude config/install.env "$ROOT_DIR/" "$STACK_DIR/"
|
||||
fi
|
||||
if git -C "$ROOT_DIR" rev-parse HEAD >/dev/null 2>&1; then
|
||||
git -C "$ROOT_DIR" rev-parse HEAD >"$STACK_DIR/.mike-ai-source-commit"
|
||||
local source_head
|
||||
source_head=$(git -C "$ROOT_DIR" rev-parse HEAD)
|
||||
git -C "$STACK_DIR" switch -C main "$source_head" >/dev/null
|
||||
printf '%s\n' "$source_head" >"$STACK_DIR/.mike-ai-source-commit"
|
||||
fi
|
||||
install -d -m 0700 "$SECRETS_DIR"
|
||||
[[ -s $SECRETS_DIR/router-api-key ]] || openssl rand -base64 48 >$SECRETS_DIR/router-api-key
|
||||
|
||||
Reference in New Issue
Block a user