[#622] Fix permissions with folders in linux integrations

This commit is contained in:
Théophile Diot 2023-09-08 09:29:42 +02:00
parent 2fce08b727
commit fb5a8dc4fb
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -24,6 +24,7 @@ function do_and_check_cmd() {
# Give all the permissions to the nginx user # Give all the permissions to the nginx user
echo "Setting ownership for all necessary directories to nginx user and group..." echo "Setting ownership for all necessary directories to nginx user and group..."
do_and_check_cmd chown -R nginx:nginx /usr/share/bunkerweb /var/cache/bunkerweb /var/lib/bunkerweb /etc/bunkerweb /var/tmp/bunkerweb /var/run/bunkerweb /var/log/bunkerweb do_and_check_cmd chown -R nginx:nginx /usr/share/bunkerweb /var/cache/bunkerweb /var/lib/bunkerweb /etc/bunkerweb /var/tmp/bunkerweb /var/run/bunkerweb /var/log/bunkerweb
do_and_check_cmd chmod -R 770 /usr/share/bunkerweb /var/cache/bunkerweb /var/lib/bunkerweb /etc/bunkerweb /var/tmp/bunkerweb /var/run/bunkerweb /var/log/bunkerweb
# Stop and disable nginx on boot # Stop and disable nginx on boot
echo "Stop and disable nginx on boot..." echo "Stop and disable nginx on boot..."