Просмотр исходного кода

Add hook to trigger event after v-update-firewal

Create $HESTIA/data/firewall/post-update.sh
#!/bin/bash
systemctl restart crowdsec-firewall-bouncer

To restart Crowdsec rules
Jaap Marcus 2 лет назад
Родитель
Сommit
0595aebde6
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      bin/v-update-firewall

+ 5 - 0
bin/v-update-firewall

@@ -220,6 +220,11 @@ else
 	systemctl -q is-enabled hestia-iptables 2> /dev/null || systemctl -q enable hestia-iptables
 fi
 
+if [ -x "$HESTIA/data/firewall/post-update.sh" ]; then
+	# Run Post update script for services interact with firewall for example Crowsec
+	bash "$HESTIA/data/firewall/post-update.sh"
+fi
+
 #----------------------------------------------------------#
 #                       Hestia                             #
 #----------------------------------------------------------#