mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:41:09 +02:00
backup: drop bash-source of .env.macmini (DOTENV format, breaks on PEM keys)
.env.macmini contains MANA_AI_PUBLIC_KEY_PEM=-----BEGIN PUBLIC KEY----- ... which bash parses as 'PUBLIC: command not found' under set -e. Plus drop set -e so a single failed container doesn't abort the rest. Failures already collected in FAILED_DBS for the summary report. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7f0e2ba10d
commit
97e285bc67
1 changed files with 7 additions and 7 deletions
|
|
@ -20,7 +20,9 @@
|
|||
#
|
||||
# Run via LaunchD daily at 3 AM.
|
||||
|
||||
set -e
|
||||
# NOTE: bewusst KEIN `set -e` global — wir wollen, dass ein Fehler
|
||||
# in einem Container nicht den Rest abbricht. Failures werden via
|
||||
# `FAILED_DBS` gesammelt und am Ende reported.
|
||||
|
||||
# Ensure PATH includes docker
|
||||
export PATH="/usr/local/bin:/opt/homebrew/bin:$PATH"
|
||||
|
|
@ -32,12 +34,10 @@ LOG_FILE="/tmp/mana-backup.log"
|
|||
DATE=$(date +%Y-%m-%d)
|
||||
DAY_OF_WEEK=$(date +%u) # 1=Monday, 7=Sunday
|
||||
|
||||
# Load env for password
|
||||
if [ -f "$PROJECT_ROOT/.env.macmini" ]; then
|
||||
source "$PROJECT_ROOT/.env.macmini"
|
||||
fi
|
||||
|
||||
POSTGRES_PASSWORD="${POSTGRES_PASSWORD:-mana123}"
|
||||
# .env.macmini ist im DOTENV-Format (Werte enthalten Spaces, BEGIN/END-
|
||||
# Marker etc.) — kann nicht via `source` in bash geladen werden. Wir
|
||||
# brauchen aus diesem File auch nichts; Telegram-Tokens kommen aus
|
||||
# .env.notifications separat.
|
||||
|
||||
log() {
|
||||
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" | tee -a "$LOG_FILE"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue