From df19357c87a548a7ea0232c791c84efdaf524a0a Mon Sep 17 00:00:00 2001 From: lapineige Date: Thu, 11 May 2023 09:56:38 +0200 Subject: [PATCH] fix logrotate rights https://github.com/YunoHost-Apps/shaarli_ynh/issues/83 --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index b928571..d3caf95 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -76,11 +76,11 @@ ynh_script_progression --message="Upgrading logrotate configuration..." if [ -d "$install_dir/data/log.txt" ] then ynh_secure_remove "$install_dir/data/log.txt" - touch "$install_dir/data/log.txt" + touch "$install_dir/data/log.txt" fi chown $app:www-data "$install_dir/data/log.txt" -ynh_use_logrotate --non-append +ynh_use_logrotate --non-append --specific_user=$app #================================================= # UPGRADE FAIL2BAN