1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

Fix permissions in restore too

This commit is contained in:
tituspijean 2021-09-25 22:46:35 +02:00
parent 1e3a7a09b4
commit 2b130e0d35
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 7 additions and 3 deletions

View file

@ -77,8 +77,6 @@ ynh_script_progression --message="Configuring PHP-FPM..." --weight=5
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies"
#phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
# ADD A CONFIGURATION

View file

@ -65,7 +65,13 @@ ynh_system_user_create --username=$app
#=================================================
# Restore permissions on app files
chown -R $app:$app $final_path
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
find "$final_path" -type d -exec chmod 550 {} +
find "$final_path" -type f -exec chmod 440 {} +
find "$final_path/data" -type d -exec chmod 770 {} +
find "$final_path/data" -type f -exec chmod 660 {} +
chmod 660 "$final_path/config.local.php"
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION