Update ui startup script

This commit is contained in:
Théophile Diot 2024-01-04 12:38:58 +00:00
parent d5732b697e
commit 624ed08af5
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/:/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" &