Compare commits

..

No commits in common. "master" and "V1.22" have entirely different histories.

4 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,4 @@
RemoteIp=10.10.10.3:1666
LocalPassword='Evil@MonitoR-666'
Crypted=no
Rotation=1

View File

@ -23,7 +23,7 @@ CheckAllEnd() {
echo '
<html>
<head>
<title>MoniThor on '$(hostname)' </title>
<title>MoniThor on '${RemoteIp}' </title>
<meta http-equiv="refresh" content="1" />
</head>
<title>MONITHOR</title>

View File

@ -8,7 +8,7 @@ python3 -m http.server ${1} &
echo '<html>
<head>
<title>MoniThor on '$(hostname)' </title>
<title>MoniThor on '${RemoteIp}' </title>
<meta http-equiv="refresh" content="1" />
</head>
<title>MONITHOR</title>

View File

@ -8,7 +8,7 @@ source /etc/monithor-server/service.cfg
Exit () {
[[ "$1" == "root" ]] && echo "You have to be root ..."
#[[ "$1" == "Config" ]] && echo "Ip configuration will failed"
[[ "$1" == "Config" ]] && echo "Ip configuration will failed"
exit
}
@ -18,7 +18,7 @@ if [[ $(id -u) != "0" ]]
Exit root
fi
#[[ -z $(ifconfig | grep inet | awk '{print $2}' | grep $RemoteIp) ]] && Exit Config
[[ -z $(ifconfig | grep inet | awk '{print $2}' | grep $RemoteIp) ]] && Exit Config