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 #=================================================