Add auto hostname setting
This commit is contained in:
parent
4b799bb44b
commit
ca552ae331
3 changed files with 18 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue