diff --git a/scripts/install b/scripts/install index 7a46b92..845519b 100644 --- a/scripts/install +++ b/scripts/install @@ -103,6 +103,7 @@ ynh_script_progression --message="Configuring log rotation..." # Use logrotate to manage application logfile(s) touch "$final_path/data/log.txt" ynh_use_logrotate "$final_path/data/log.txt" +chown $app:www-data "$final_path/data/log.txt" #================================================= # MODIFY A CONFIG FILE diff --git a/scripts/upgrade b/scripts/upgrade index 3502733..cdb65b4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -135,6 +135,7 @@ then ynh_secure_remove "$final_path/data/log.txt" touch "$final_path/data/log.txt" fi +chown $app:www-data "$final_path/data/log.txt" ynh_use_logrotate --non-append