Commit 242bf4d0 authored by Vinicius Ruoso's avatar Vinicius Ruoso

Fix discover of school name

The hostname command will not work on schools there are with remote help
activated. The school information is retrieved from but using
the IP address instead of school id.

The ME variable was not being used on this script. It comes from the
current prd_schoolinfo script that retrieves the hostname with the
'hostname' command.
Signed-off-by: default avatarVinicius Ruoso <>
parent 5bb2b21e
......@@ -10,7 +10,6 @@ if grep -q none <<< $(hostname); then
if ! test -f $ZONE; then
ME=$(hostname --short)
IP=$(/usr/sbin/ifconfig |grep "inet" |awk -F: '{print $2}' | \
awk '{print $1}')
SCHOLL="$(grep "\<$IP\>" "$ZONE")"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment