Hello Roger,

I've done a Non-maintainer upload (NMU) of mosquitto to fix #916558
since it was a blocker for 1.5.5 entering testing. I hope you don't
mind. Please include the attached debdiff in your package (or
replace it with something equivalent that you prefer) to avoid
failing on installs where logs doesn't exist.
(eg. piuparts will run with policy-rc.d which prevents the daemon
ever starting.)

Regards,
Andreas Henriksson

diff -Nru mosquitto-1.5.5/debian/changelog mosquitto-1.5.5/debian/changelog
--- mosquitto-1.5.5/debian/changelog    2018-12-11 17:37:32.000000000 +0100
+++ mosquitto-1.5.5/debian/changelog    2018-12-22 16:54:06.000000000 +0100
@@ -1,3 +1,10 @@
+mosquitto (1.5.5-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Only chown mosquitto.log if it exists. (Closes: #916558)
+
+ -- Andreas Henriksson <andr...@fatal.se>  Sat, 22 Dec 2018 16:54:06 +0100
+
 mosquitto (1.5.5-1) unstable; urgency=medium
 
   * SECURITY UPDATE: If the option `per_listener_settings` was set to true,
diff -Nru mosquitto-1.5.5/debian/mosquitto.postinst 
mosquitto-1.5.5/debian/mosquitto.postinst
--- mosquitto-1.5.5/debian/mosquitto.postinst   2018-12-11 17:37:32.000000000 
+0100
+++ mosquitto-1.5.5/debian/mosquitto.postinst   2018-12-22 16:54:06.000000000 
+0100
@@ -17,7 +17,8 @@
 
 fix_permissions() {
        chown mosquitto /var/lib/mosquitto
-       chown mosquitto /var/log/mosquitto /var/log/mosquitto/mosquitto.log
+       test ! -e /var/log/mosquitto || chown mosquitto /var/log/mosquitto
+       test ! -e /var/log/mosquitto/mosquitto.log || chown mosquitto 
/var/log/mosquitto/mosquitto.log
 }
 
 case "$1" in

Reply via email to