diff --git a/scripts/install b/scripts/install index ae5b401..cf5dba3 100755 --- a/scripts/install +++ b/scripts/install @@ -176,7 +176,7 @@ ynh_store_file_checksum --file="$final_path/config.yaml" ynh_script_progression --message="Configuring log rotation..." --weight=3 # Use logrotate to manage application logfile(s) -ynh_use_logrotate --logfile "/var/log/$app/$app.log" --specific_user $app/$app +ynh_use_logrotate --logfile "/var/log/$app/$app.log" --nonappend --specific_user $app/$app chmod -R 600 "/var/log/$app" chmod 700 "/var/log/$app" chown -R $app:$app /var/log/$app diff --git a/scripts/restore b/scripts/restore index 4b78749..9ea8a75 100755 --- a/scripts/restore +++ b/scripts/restore @@ -124,7 +124,7 @@ systemctl enable $app.service --quiet # RESTORE THE LOGROTATE CONFIGURATION #================================================= -ynh_use_logrotate --logfile "/var/log/$app/$app.log" --specific_user $app/$app +ynh_use_logrotate --logfile "/var/log/$app/$app.log" --nonappend --specific_user $app/$app chmod -R 600 "/var/log/$app" chmod 700 "/var/log/$app" chown -R $app:$app /var/log/$app diff --git a/scripts/upgrade b/scripts/upgrade index ed3d748..c93e765 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -202,7 +202,7 @@ ynh_store_file_checksum --file="/etc/matrix-$synapse_instance/app-service/$app.y ynh_script_progression --message="Upgrading logrotate configuration..." --weight=1 # Use logrotate to manage application logfile(s) -ynh_use_logrotate --non-append --logfile "/var/log/$app/$app.log" --specific_user $app/$app +ynh_use_logrotate --logfile "/var/log/$app/$app.log" --nonappend --specific_user $app/$app chmod -R 600 "/var/log/$app" chmod 700 "/var/log/$app" chown -R $app:$app /var/log/$app