Update bunkerweb-ui.sh to include /usr/share/bunkerweb/ui in PYTHONPATH

This commit is contained in:
Théophile Diot 2024-04-24 13:42:04 +02:00
parent 9f2c86ce8e
commit 6f74d3ec1c
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -1,7 +1,7 @@
#!/bin/bash
# Set the PYTHONPATH
export PYTHONPATH=/usr/share/bunkerweb/deps/python/
export PYTHONPATH=/usr/share/bunkerweb/deps/python:/usr/share/bunkerweb/ui
# Create the ui.env file if it doesn't exist
if [ ! -f /etc/bunkerweb/ui.env ]; then
@ -17,7 +17,7 @@ start() {
python3 -m gunicorn \
--chdir /usr/share/bunkerweb/ui \
--config /usr/share/bunkerweb/ui/gunicorn.conf.py \
--pythonpath /usr/share/bunkerweb/deps/python/ \
--pythonpath /usr/share/bunkerweb/deps/python,/usr/share/bunkerweb/ui \
--user nginx \
--group nginx \
--bind "127.0.0.1:7000" &