diff --git a/scripts/install b/scripts/install index e1b7f74..bcd52ee 100755 --- a/scripts/install +++ b/scripts/install @@ -23,6 +23,9 @@ ynh_script_progression "Configuring logrotate to manage application logfiles" # Use logrotate to manage application logfile(s) ynh_config_add_logrotate +touch /var/log/$app/$app.log +touch /var/log/$app/${app}_workers.log +chown -R $app:www-data /var/log/$app/ #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE diff --git a/scripts/restore b/scripts/restore index 835cca0..5d85694 100644 --- a/scripts/restore +++ b/scripts/restore @@ -15,6 +15,9 @@ ynh_script_progression "Configuring logrotate to manage application logfiles" # Use logrotate to manage application logfile(s) ynh_config_add_logrotate +touch /var/log/$app/$app.log +touch /var/log/$app/${app}_workers.log +chown -R $app:www-data /var/log/$app/ #================================================= # RESTORE THE NGINX CONFIGURATION