This commit is contained in:
@@ -2,11 +2,15 @@
|
||||
set -e
|
||||
# Source env if available
|
||||
if [[ -f /config/backupbot.env ]]; then
|
||||
export $(grep -v '^#' /config/backupbot.env | xargs)
|
||||
set -a
|
||||
source /config/backupbot.env
|
||||
set +a
|
||||
else
|
||||
echo "[INFO] copying env vars from defaults..."
|
||||
cp -r /defaults/backupbot.env /config/
|
||||
export $(grep -V '^#' /config/backupbot.env | xargs)
|
||||
set -a
|
||||
source /config/backupbot.env
|
||||
set +a
|
||||
fi
|
||||
# Initialize default web interface if missing
|
||||
if [ ! -d /config/web ]; then
|
||||
|
||||
Reference in New Issue
Block a user