Fix permissions with ui tests on linux

This commit is contained in:
Théophile Diot 2023-09-25 16:08:08 +01:00
parent cad3012e6d
commit 42be334e40
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -38,6 +38,9 @@ else
sudo systemctl stop bunkerweb bunkerweb-ui
export MAKEFLAGS="-j$(nproc)"
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
find /usr/share/bunkerweb -path /usr/share/bunkerweb/ui/deps -prune -o -type f -exec chmod 0740 {} \;
find /usr/share/bunkerweb -path /usr/share/bunkerweb/ui/deps -prune -o -type d -exec chmod 0750 {} \;
sudo mkdir /var/www/html/app1.example.com
sudo touch /var/www/html/app1.example.com/index.html
export TEST_TYPE="linux"