Skip to content

Commit

Permalink
mosquitto: fix pid_file path (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
sikmir authored Jul 14, 2023
1 parent 7f8cfd6 commit f3c7a04
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
wb-configs (3.13.1-wb104) stable; urgency=medium

* mosquitto: fix pid_file path after upgrade of mosquitto from 1.x to 2.x

-- Nikolay Korotkiy <[email protected]> Tue, 11 Jul 2023 13:24:00 +0400

wb-configs (3.13.1-wb103) stable; urgency=medium

* Add /usr/lib/systemd/ntp-units.d/10-ntp.list to make timedatectl aware of ntp.service
Expand Down
11 changes: 11 additions & 0 deletions debian/wb-configs.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,14 @@ ppp_peers_fixes()

nm_fixes
ppp_peers_fixes

mosquitto_fixes()
{
MOSQUITTO_CONF="/etc/mosquitto/mosquitto.conf"
if grep -q "pid_file /var/run/mosquitto.pid" $MOSQUITTO_CONF; then
sed -i 's#pid_file /var/run/mosquitto.pid#pid_file /run/mosquitto/mosquitto.pid#' $MOSQUITTO_CONF
deb-systemd-invoke restart mosquitto
fi
}

mosquitto_fixes

0 comments on commit f3c7a04

Please sign in to comment.