diff --git a/services/backupbot/run b/services/backupbot/run index d6fca02..d2a0e79 100644 --- a/services/backupbot/run +++ b/services/backupbot/run @@ -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