Fix management .env: add SETTINGS_SECRET, SETTINGS_URL, PG_SUPERPASS
Previously the management .env was missing SETTINGS_SECRET (needed by the backup service to fetch Nextcloud creds) and used stale variable names (BACKUP_PG_PASS, BACKUP_REMOTE) that the docker-compose never read. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0275641243
commit
4d521f8026
1 changed files with 4 additions and 7 deletions
|
|
@ -789,16 +789,13 @@ deploy_management() {
|
||||||
deploy_service 105 "management" "${REPO_ROOT}/management" /opt/management
|
deploy_service 105 "management" "${REPO_ROOT}/management" /opt/management
|
||||||
|
|
||||||
push_file 105 /opt/management/.env <<EOF
|
push_file 105 /opt/management/.env <<EOF
|
||||||
FORGEJO_WEBHOOK_SECRET=${WEBHOOK_SECRET}
|
|
||||||
WEBHOOK_SECRET=${WEBHOOK_SECRET}
|
WEBHOOK_SECRET=${WEBHOOK_SECRET}
|
||||||
CENTRAL_AUTH_SECRET=${CENTRAL_AUTH_SECRET}
|
CENTRAL_AUTH_SECRET=${CENTRAL_AUTH_SECRET}
|
||||||
AUTH_URL=http://10.10.10.101:3001
|
AUTH_URL=http://10.10.10.101:3001
|
||||||
BACKUP_REMOTE=${BACKUP_REMOTE}
|
SETTINGS_URL=http://10.10.10.116:3080
|
||||||
BACKUP_PG_HOST=10.10.10.100
|
SETTINGS_SECRET=${SETTINGS_SECRET}
|
||||||
BACKUP_PG_USER=postgres
|
PG_SUPERPASS=${PG_SUPERPASS}
|
||||||
BACKUP_PG_PASS=${PG_SUPERPASS}
|
BACKUP_DATABASES=auth_db noticeboard_db cashup_db hk_db maintenance_db settings_db
|
||||||
UPTIME_KUMA_PORT=3002
|
|
||||||
UPDATER_PORT=9000
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
pct exec 105 -- bash -c "cd /opt/management && docker compose up -d --build" &>/dev/null
|
pct exec 105 -- bash -c "cd /opt/management && docker compose up -d --build" &>/dev/null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue