[UPDATE] - id root for monithor-server
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>MoniThor on </title>
|
||||
<meta http-equiv="refresh" content="1" />
|
||||
</head>
|
||||
<title>MONITHOR</title>
|
||||
|
||||
!!!! Initialization !!!!
|
||||
|
||||
|
||||
@@ -5,6 +5,14 @@ ScriptDir=/usr/local/bin/monithor-server.d/
|
||||
SondeFile=/etc/monithor-server/sonde.cfg
|
||||
source /etc/monithor-server/service.cfg
|
||||
|
||||
if [[ $(id -u) != "0" ]]
|
||||
then
|
||||
echo "Not Root"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
|
||||
[[ "${Crypted}" == "yes" ]] && NcCmd="cryptcat -k ${LocalPassword} -l ${LocalIp} -p ${LocalPort} " || NcCmd="nc -l ${LocalIp} ${LocalPort}"
|
||||
|
||||
if [[ "${1}" == "start" ]]
|
||||
|
||||
Reference in New Issue
Block a user