Fix --only auth/noticeboard: OFFICE_IP unbound under set -u
In --only mode the creds file provides OFFICE_IP_CHECK, not OFFICE_IP,
so the bare ${OFFICE_IP} tripped 'set -u'. Use the same tolerant
${OFFICE_IP_CHECK:-${OFFICE_IP:-disabled}} form as cashup/hk-planner.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
95b3741d23
commit
95632f22c9
1 changed files with 2 additions and 2 deletions
|
|
@ -646,7 +646,7 @@ CENTRAL_AUTH_SECRET=${CENTRAL_AUTH_SECRET}
|
|||
DOMAIN=${DOMAIN}
|
||||
ADMIN_EMAIL=${ADMIN_EMAIL}
|
||||
ADMIN_PASSWORD=${ADMIN_PASS}
|
||||
OFFICE_IP_CHECK=${OFFICE_IP}
|
||||
OFFICE_IP_CHECK=${OFFICE_IP_CHECK:-${OFFICE_IP:-disabled}}
|
||||
CORS_ORIGIN=https://${DOMAIN}
|
||||
SESSION_DAYS=30
|
||||
SETTINGS_URL=http://10.10.10.116:3080
|
||||
|
|
@ -809,7 +809,7 @@ deploy_noticeboard() {
|
|||
DATABASE_URL=postgresql://noticeboard:${NOTICES_DB_PASS}@10.10.10.100:5432/noticeboard_db
|
||||
CENTRAL_AUTH_SECRET=${CENTRAL_AUTH_SECRET}
|
||||
APP_SLUG=noticeboard
|
||||
OFFICE_IP_CHECK=${OFFICE_IP}
|
||||
OFFICE_IP_CHECK=${OFFICE_IP_CHECK:-${OFFICE_IP:-disabled}}
|
||||
NODE_ENV=production
|
||||
AUTH_URL=http://10.10.10.101:3001
|
||||
EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue