From 624ed08af541ec45f648592d306f8d76cce94057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Thu, 4 Jan 2024 12:38:58 +0000 Subject: [PATCH] Update ui startup script --- src/linux/scripts/bunkerweb-ui.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/linux/scripts/bunkerweb-ui.sh b/src/linux/scripts/bunkerweb-ui.sh index 959dd9a40..e4eda14b4 100755 --- a/src/linux/scripts/bunkerweb-ui.sh +++ b/src/linux/scripts/bunkerweb-ui.sh @@ -1,7 +1,7 @@ #!/bin/bash # Set the PYTHONPATH -export PYTHONPATH=/usr/share/bunkerweb/deps/python/:/usr/share/bunkerweb/ui/ +export PYTHONPATH=/usr/share/bunkerweb/deps/python/ # Create the ui.env file if it doesn't exist if [ ! -f /etc/bunkerweb/ui.env ]; then @@ -15,8 +15,9 @@ start() { # shellcheck disable=SC2046 export $(cat /etc/bunkerweb/ui.env) python3 -m gunicorn \ + --chdir /usr/share/bunkerweb/ui \ --config /usr/share/bunkerweb/ui/gunicorn.conf.py \ - --pythonpath /usr/share/bunkerweb/deps/python/,/usr/share/bunkerweb/ui/ \ + --pythonpath /usr/share/bunkerweb/deps/python/ \ --user nginx \ --group nginx \ --bind "127.0.0.1:7000" &