Explorar o código

Added error message if gsquery.py doesn't exists

Marvin %!s(int64=11) %!d(string=hai) anos
pai
achega
91aa91bed6
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      functions/fn_monitor_query

+ 4 - 1
functions/fn_monitor_query

@@ -89,4 +89,7 @@ if [ -f "${rootdir}/gsquery.py" ]; then
 		${rootdir}/gsquery.py -a ${ip} -p ${port} -e ${engine}
 		exit
 	fi
-fi
+else
+	fn_printfail "Could not find ${rootdir}/gsquery.py"
+	fn_scriptlog "Could not find ${rootdir}/gsquery.py"
+fi