From 882c4fb8ff33ee87408f884dd5b062c749b1ef83 Mon Sep 17 00:00:00 2001 From: Emmanuel Averty Date: Sat, 25 Feb 2023 22:09:33 +0100 Subject: [PATCH] fix: add --nonappend for logrotate conf --- manifest.json | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index c72ced6..894f8a5 100644 --- a/manifest.json +++ b/manifest.json @@ -14,7 +14,7 @@ }, "url": "https://forgejo.org", "license": "MIT", - "version": "1.18.5-0~ynh1", + "version": "1.18.5-0~ynh2", "maintainer": { "name": "Emmanuel Averty", "email": "emmanuel.averty@free.fr" diff --git a/scripts/upgrade b/scripts/upgrade index a0cdfb8..099f324 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -171,7 +171,7 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies ynh_script_progression --message="Configuring log rotation..." --weight=1 # Use logrotate to manage application logfile(s) -ynh_use_logrotate --logfile "/var/log/$app" +ynh_use_logrotate --logfile "/var/log/$app" --nonappend chown -R $app:$app "/var/log/$app" chmod u=rwX,g=rX,o= "/var/log/$app"