feat(installer): load .env file to persistent install config

This commit is contained in:
jo 2022-07-06 14:44:58 +02:00 committed by Kyle Robbertze
parent f1270fed6f
commit 0bb792d047
2 changed files with 12 additions and 0 deletions

View file

@ -93,6 +93,9 @@ EOF
done <<< "$(grep -A1 '^# >' "$0")"
}
# Load .env file if exists
[[ -f "$SCRIPT_DIR/.env" ]] && source "$SCRIPT_DIR/.env"
# Configuration
# > User used to run LibreTime.
LIBRETIME_USER=${LIBRETIME_USER:-"www-data"}