From 1460de866bb979e3dc2417364180eb46d3e7d42d Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sat, 3 Dec 2022 12:18:01 +0100 Subject: [PATCH] Fix mosquitto log path for logrotate --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 993e46b..ee581cb 100755 --- a/scripts/install +++ b/scripts/install @@ -207,7 +207,7 @@ chown -R domoticz: /var/log/"$app" # Use logrotate to manage application logfile(s) ynh_use_logrotate -[[ ! -z "$mqtt_domain" ]] && ynh_use_logrotate --logfile="/var/log/mosquitto/" +[[ ! -z "$mqtt_domain" ]] && ynh_use_logrotate --logfile="/var/log/mosquitto" #================================================= # INTEGRATE SERVICE IN YUNOHOST diff --git a/scripts/upgrade b/scripts/upgrade index feff453..754e482 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -265,7 +265,7 @@ chown -R domoticz: /var/log/"$app" # Use logrotate to manage app-specific logfile(s) ynh_use_logrotate --logfile="/var/log/$app" --non-append -[[ ! -z "$mqtt_domain" ]] && ynh_use_logrotate --logfile="/var/log/mosquitto/" +[[ ! -z "$mqtt_domain" ]] && ynh_use_logrotate --logfile="/var/log/mosquitto" #================================================= # SETUP FAIL2BAN