Browse Source

Fix permissions in restore

Alexandre Aubin 3 years ago
parent
commit
3663173000
1 changed files with 4 additions and 1 deletions
  1. 4 1
      scripts/restore

+ 4 - 1
scripts/restore

@@ -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