Fix UI linux test (again)

This commit is contained in:
Théophile Diot 2023-09-25 19:17:08 +01:00
parent 153e9fecf1
commit cb3250e4e7
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -36,11 +36,7 @@ if [ "$integration" = "docker" ] ; then
fi
else
sudo systemctl stop bunkerweb bunkerweb-ui
sudo sed -i "/python3 -m gunicorn/c\ python3 -m flask --app main:app run --host=127.0.0.1 --port=7000 &" /usr/share/bunkerweb/scripts/bunkerweb-ui.sh
export MAKEFLAGS="-j$(nproc)"
sudo pip install --force-reinstall --no-cache-dir --require-hashes --target /usr/share/bunkerweb/deps/python -r /usr/share/bunkerweb/deps/requirements.txt
sudo chown -R nginx:nginx /usr/share/bunkerweb/deps
sudo chmod -R 777 /usr/share/bunkerweb/deps
sudo sed -i "/python3 -m gunicorn/c\ export MAKEFLAGS="-j$(nproc)"\n python3 -m pip install --no-cache-dir --require-hashes -r /usr/share/bunkerweb/deps/requirements.txt\n python3 -m flask --app main:app run --host=127.0.0.1 --port=7000 &" /usr/share/bunkerweb/scripts/bunkerweb-ui.sh
sudo mkdir /var/www/html/app1.example.com
sudo touch /var/www/html/app1.example.com/index.html
export TEST_TYPE="linux"