diff --git a/scripts/install b/scripts/install index ab15b95..8454ce9 100755 --- a/scripts/install +++ b/scripts/install @@ -32,7 +32,7 @@ ynh_setup_source --dest_dir="$install_dir" chmod -R o-rwx "$install_dir" chown -R "$app:www-data" "$install_dir" - +chmod -R 750 "$install_dir" #================================================= # SPECIFIC SETUP @@ -69,10 +69,6 @@ ynh_add_fpm_config # Create a dedicated NGINX config ynh_add_nginx_config - -# chmod again to fix unaccessible templates / css files -chmod -R 755 "$install_dir" - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/restore b/scripts/restore index 661bb5f..6e43d11 100755 --- a/scripts/restore +++ b/scripts/restore @@ -19,6 +19,7 @@ ynh_restore_file --origin_path="$install_dir" chmod -R o-rwx "$install_dir" chown -R "$app:www-data" "$install_dir" +chmod -R 750 "$install_dir" #================================================= # RESTORE SYSTEM CONFIGURATIONS diff --git a/scripts/upgrade b/scripts/upgrade index 117c6da..2a5cd3f 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -53,9 +53,9 @@ ynh_script_progression --message="Upgrading source files..." --weight=3 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" --keep="config.php pheditor.php menu.php config.t2t var/pages/main.txt var/pages/todo.txt var/pages/sandbox.txt var/pages/links.txt var/pages/admin.txt" - chmod -R o-rwx "$install_dir" chown -R "$app:www-data" "$install_dir" +chmod -R 750 "$install_dir" #================================================= # STORE THE CONFIG FILE CHECKSUM