mirror of
https://github.com/YunoHost-Apps/monitorix_ynh.git
synced 2024-09-03 19:46:06 +02:00
dd2a128e76
While we run yunohost firewall reload the monitorix rules (for stats) are remove. We add a hook to fix that
6 lines
No EOL
167 B
Text
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 |