Changes how the environment variables from a file are set and expands to allow any to be set this way

This commit is contained in:
Trenton Holmes
2022-12-25 15:25:27 -08:00
committed by Trenton H
parent a2b7687c3b
commit 06c6f33d97
4 changed files with 50 additions and 44 deletions

View File

@@ -3,6 +3,9 @@
set -e
cd /usr/src/paperless/src/
# This ensures environment is setup
# shellcheck disable=SC1091
source /sbin/env-from-file.sh
if [[ $(id -u) == 0 ]] ;
then