Ver Fonte

fixed issue preventing monitor from running and alerting

check_permissions is bypassed for monitor as the monitor woudl not work at all and not alert of a server failure. The server will however fail to start with permissions issues
Daniel Gibbs há 9 anos atrás
pai
commit
aab6dc58bb
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      lgsm/functions/check.sh

+ 4 - 1
lgsm/functions/check.sh

@@ -12,7 +12,10 @@ local commandname="CHECK"
 
 
 check_root.sh
 check_root.sh
 check_tmuxception.sh
 check_tmuxception.sh
-check_permissions.sh
+
+if [ "${function_selfname}" != "command_monitor.sh" ]
+	check_permissions.sh
+fi
 
 
 if [ "${function_selfname}" != "command_install.sh" ]&&[ "${function_selfname}" != "command_update_functions.sh" ]; then
 if [ "${function_selfname}" != "command_install.sh" ]&&[ "${function_selfname}" != "command_update_functions.sh" ]; then
 	check_system_dir.sh
 	check_system_dir.sh