mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Export 'BACKUP_CONFIGURATIONS' from 'deployment/.env' and use it.
This commit is contained in:
parent
e3e634d848
commit
0bf4ea56bd
@ -1 +1,5 @@
|
||||
CONFIGURATION=example
|
||||
# branding folder used for "docker compose up" run in deployment folder
|
||||
CONFIGURATION=stage.ocelot.social
|
||||
|
||||
# used in "scripts/clusters.cron-backups.sh"
|
||||
BACKUP_CONFIGURATIONS="stage.ocelot.social stage.yunite.me"
|
||||
@ -4,6 +4,11 @@
|
||||
SCRIPT_PATH=$(realpath $0)
|
||||
SCRIPT_DIR=$(dirname $SCRIPT_PATH)
|
||||
|
||||
# export all variables in "../.env"
|
||||
set -a
|
||||
source ${SCRIPT_DIR}/../.env
|
||||
set +a
|
||||
|
||||
# check BACKUP_CONFIGURATIONS
|
||||
if [ -z ${BACKUP_CONFIGURATIONS} ]; then
|
||||
echo "You must provide a `BACKUP_CONFIGURATIONS` via environment variable"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user