monit: Ship fix for Bug #13246 on existing installations

Message ID 20230830102047.1602-1-matthias.fischer@ipfire.org
State Staged
Commit 1c5883c1341340c57360d6f17d9b8ec751f728bb
Headers
Series monit: Ship fix for Bug #13246 on existing installations |

Commit Message

Matthias Fischer Aug. 30, 2023, 10:20 a.m. UTC
  Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 config/rootfiles/core/180/update.sh | 5 +++++
 1 file changed, 5 insertions(+)
  

Patch

diff --git a/config/rootfiles/core/180/update.sh b/config/rootfiles/core/180/update.sh
index 8a9d3bfd2..664654f7c 100644
--- a/config/rootfiles/core/180/update.sh
+++ b/config/rootfiles/core/180/update.sh
@@ -31,6 +31,11 @@  for (( i=1; i<=$core; i++ )); do
 	rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire
 done
 
+# Create missing '/etc/monit.d'-directory (Bug #13246)
+if [ -f /usr/bin/monit ]; then
+	mkdir -p /etc/monit.d
+fi
+
 # Stop services
 
 # Extract files