From f3c8a690287f21673b2634768cb628e2c9654a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 6 Feb 2023 17:22:21 +0100 Subject: [PATCH] Fix --- scripts/install | 1 + scripts/restore | 1 + scripts/upgrade | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 0ab22de..2e7c543 100644 --- a/scripts/install +++ b/scripts/install @@ -38,6 +38,7 @@ ynh_add_fpm_config --usage=low --footprint=low #================================================= # Set permissions to app files +chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" diff --git a/scripts/restore b/scripts/restore index edd6453..34a1ef5 100644 --- a/scripts/restore +++ b/scripts/restore @@ -38,6 +38,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # Set permissions to app files +chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" diff --git a/scripts/upgrade b/scripts/upgrade index 1bc7b46..980460a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -48,6 +48,7 @@ ynh_add_nginx_config #================================================= # Set permissions to app files +chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir"