diff --git a/scripts/install b/scripts/install index 242a512..0e42d60 100755 --- a/scripts/install +++ b/scripts/install @@ -42,6 +42,8 @@ ynh_add_systemd_config yunohost service add "$app" --description=XWiki --log="/var/log/$app/$app.log" +ynh_use_logrotate --logfile "/var/log/$app" + #================================================= # ADD A CONFIGURATION #================================================= diff --git a/scripts/restore b/scripts/restore index a13ab2e..11ccb16 100755 --- a/scripts/restore +++ b/scripts/restore @@ -39,6 +39,8 @@ systemctl enable $app.service --quiet yunohost service add $app --description=XWiki --log="/var/log/$app/$app.log" +ynh_use_logrotate --logfile "/var/log/$app" + #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 6de4d7c..92018eb 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -46,6 +46,8 @@ ynh_add_systemd_config yunohost service add "$app" --description=XWiki --log="/var/log/$app/$app.log" +ynh_use_logrotate --logfile "/var/log/$app" + #================================================= # ADD A CONFIGURATION #=================================================