From 06f899a0826a243a91cd9487ccbc2a3b3c22193c Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Sat, 13 Aug 2022 19:11:26 -0400 Subject: [PATCH] fix backup/restore --- scripts/restore | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/restore b/scripts/restore index 1ca67c2..2c6632f 100755 --- a/scripts/restore +++ b/scripts/restore @@ -62,6 +62,17 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +#================================================= +# Create blank log file +#================================================= + +mkdir -p "/var/log/$app" + +chmod 750 "/var/log/$app" +chmod -R o-rwx "$final_path" + +ynh_exec_as $app touch "/var/log/$app/$app.log" + #================================================= # RESTORE THE DATA DIRECTORY #=================================================