1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monitorix_ynh.git synced 2024-09-03 19:46:06 +02:00
monitorix_ynh/conf/post_iptable_rules_hook
Josué Tille dd2a128e76 Force add iptables rule for monitorix
While we run yunohost firewall reload the monitorix rules (for stats) are remove. We add a hook to fix that
2018-05-01 12:42:19 +02:00

6 lines
No EOL
167 B
Text

#/bin/bash
if [[ $(systemctl status monitorix.service | grep "Active" | cut -d'(' -f2 | cut -d ')' -f1) = 'running' ]]
then
systemctl restart monitorix.service
fi