From 440a586a2ace9b084ea3d45d049da025c0fd59b6 Mon Sep 17 00:00:00 2001 From: Stylix58 <63605602+Stylix58@users.noreply.github.com> Date: Sun, 28 Mar 2021 19:47:28 +0200 Subject: [PATCH] Update restore --- scripts/restore | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index 311e2c9..da00f18 100755 --- a/scripts/restore +++ b/scripts/restore @@ -58,8 +58,12 @@ ynh_restore_file --origin_path="$final_path" # RESTORE USER RIGHTS #================================================= -# Configure internal permissions for ICEcoder -chown -R my_webapp $final_path +if [[ $path_url =~ my_webapp ]] +then + chown -R my_webapp $final_path +else + chown -R www-data.www-data $final_path +fi #================================================= # RESTORE THE LOGROTATE CONFIGURATION