1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mautrix_signal_ynh.git synced 2024-09-03 19:46:07 +02:00

Fix appending the logrotate config twice during upgrade

Closes https://github.com/YunoHost-Apps/mautrix_signal_ynh/issues/49
This commit is contained in:
Mayeul Cantan 2022-08-16 20:20:48 +02:00
parent 883c3d7708
commit 381393ebcd

View file

@ -173,7 +173,7 @@ ynh_add_systemd_config
ynh_script_progression --message="Upgrading logrotate configuration..." --weight=1
# Use logrotate to manage app-specific logfile(s)
ynh_use_logrotate
ynh_use_logrotate --nonappend
chmod -R 600 "/var/log/$app"
chmod 700 "/var/log/$app"
chown -R $app:$app /var/log/$app