Skip to content

Commit

Permalink
fix_mosquitto.sh: don't move config if .keep file exists (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
sikmir authored Oct 30, 2023
1 parent c6ec212 commit 535e387
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configs/usr/lib/wb-configs/fix_mosquitto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ for i in ${!mosquitto_confs[@]}; do
if [ "$mc_calculated_hash" == "$mc_hash" ]; then
echo "Removing mosquitto 1.x config $mc"
rm -f $mc $mc.default || true
else
elif [ ! -f $mc.keep ]; then
echo "Backup mosquitto 1.x config $mc"
mv $mc $mc.old
else
echo "Keep config $mc"
fi
fi
done
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.19.2) stable; urgency=medium

* fix_mosquitto.sh: don't move config if .keep file exists

-- Nikolay Korotkiy <[email protected]> Thu, 26 Oct 2023 18:02:00 +0400

wb-configs (3.19.1) stable; urgency=medium

* Add fcgiwrap override. Prefork 2 fcgiwrap processes
Expand Down

0 comments on commit 535e387

Please sign in to comment.