Parcourir la source

Added error message if gsquery.py doesn't exists

Marvin il y a 11 ans
Parent
commit
91aa91bed6
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  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