Add auto hostname setting

This commit is contained in:
Donald Burr 2015-02-17 22:41:20 -08:00
parent 4b799bb44b
commit ca552ae331
3 changed files with 18 additions and 18 deletions

View file

@ -2,7 +2,7 @@
SERVERIP=`cat SERVERIP`
HOSTNAME=`hostname`
NUM=`grep ^$HOSTNAME: HOSTS | cut -d: -f3`
NUM=`grep ^$HOSTNAME\| HOSTS | cut -d\| -f4`
if [ -z "$NUM" ]; then
echo "error: could not find host number for `hostname`!"
exit 1