1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

Fix permissions in restore

This commit is contained in:
Alexandre Aubin 2021-05-13 16:20:18 +02:00 committed by GitHub
parent 79956b5f46
commit 3663173000
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,10 @@ ynh_system_user_create --username=$app
ynh_script_progression --message="Restoring user rights..."
# Restore permissions on app files
chown -R $app: $final_path
chown -R $app:$app ${final_path}/
chmod -R 0644 ${final_path}/*
find ${final_path}/ -type d -exec chmod +x {} \;
chmod o-rwx ${final_path}
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION