Fix bunkerweb-ui.sh script with variables not being exported correctly

This commit is contained in:
Théophile Diot 2023-10-02 11:42:32 +01:00
parent 5ed595be68
commit 3589057703
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -12,7 +12,8 @@ fi
# Function to start the UI
start() {
echo "Starting UI"
export "$(cat /etc/bunkerweb/ui.env)"
# shellcheck disable=SC2046
export $(cat /etc/bunkerweb/ui.env)
python3 -m gunicorn \
--config /usr/share/bunkerweb/ui/gunicorn.conf.py \
--pythonpath /usr/share/bunkerweb/deps/python/,/usr/share/bunkerweb/ui/ \