mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
fix: streamline UI startup command by using sudo for nginx user execution
This commit is contained in:
parent
37249a11cf
commit
8b7ff00ffd
1 changed files with 1 additions and 10 deletions
|
|
@ -16,16 +16,7 @@ start() {
|
|||
echo "Starting UI"
|
||||
# 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 \
|
||||
--user nginx \
|
||||
--group nginx \
|
||||
--bind "127.0.0.1:7000" &
|
||||
while ! [ -f "/var/run/bunkerweb/ui.pid" ]; do
|
||||
sleep 1
|
||||
done
|
||||
sudo -E -u nginx -g nginx /bin/bash -c "PYTHONPATH=$PYTHONPATH 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 --bind \"127.0.0.1:7000\""
|
||||
}
|
||||
|
||||
# Function to stop the UI
|
||||
|
|
|
|||
Loading…
Reference in a new issue