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