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

Fix logrotate in upgrade script

This commit is contained in:
Dante 2022-07-06 16:21:55 +01:00
parent 42df5b9109
commit 053bd6327f

View file

@ -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 --logfile "/var/log/$app/$app.log" --specific_user $app/$app
ynh_use_logrotate --logfile "/var/log/$app/$app.log" --specific_user $app/$app --nonappend
chmod -R 600 "/var/log/$app"
chmod 700 "/var/log/$app"
chown -R $app:$app /var/log/$app