Commit 1d36f0ab authored by David Johnson's avatar David Johnson

Use the $HOSTNAME from setup-lib.sh .

parent 03e369b9
......@@ -15,7 +15,6 @@ fi
# Grab our libs
. "`dirname $0`/setup-lib.sh"
HOSTNAME=`hostname -s`
if [ "$HOSTNAME" = "$CONTROLLER" -o "$HOSTNAME" = "$NETWORKMANAGER" ]; then
exit 0;
fi
......
......@@ -15,7 +15,6 @@ fi
# Grab our libs
. "`dirname $0`/setup-lib.sh"
HOSTNAME=`hostname -s`
if [ "$HOSTNAME" = "$CONTROLLER" -o "$HOSTNAME" = "$NETWORKMANAGER" ]; then
exit 0;
fi
......
......@@ -17,7 +17,6 @@ DIRNAME=`dirname $0`
# Grab our libs
. "$DIRNAME/setup-lib.sh"
HOSTNAME=`hostname -s`
if [ "$HOSTNAME" == "$CONTROLLER" -o "$HOSTNAME" == "$NETWORKMANAGER" ]; then
exit 0;
fi
......
......@@ -17,7 +17,6 @@ fi
# Grab our libs
. "$DIRNAME/setup-lib.sh"
HOSTNAME=`hostname -s`
if [ "$HOSTNAME" != "$CONTROLLER" ]; then
exit 0;
fi
......
......@@ -16,8 +16,6 @@ fi
# Grab our libs
. "`dirname $0`/setup-lib.sh"
HOSTNAME=`hostname -s`
# Make ourself a keypair; this gets copied to other roots' authorized_keys
if [ ! -f /root/.ssh/id_rsa ]; then
ssh-keygen -t rsa -f /root/.ssh/id_rsa -N ''
......
......@@ -15,7 +15,6 @@ fi
# Grab our libs
. "`dirname $0`/setup-lib.sh"
HOSTNAME=`hostname -s`
if [ "$HOSTNAME" != "$STORAGEHOST" ]; then
exit 0;
fi
......
......@@ -15,7 +15,6 @@ fi
# Grab our libs
. "`dirname $0`/setup-lib.sh"
HOSTNAME=`hostname -s`
if [ "$HOSTNAME" != "$STORAGEHOST" ]; then
exit 0;
fi
......
......@@ -16,8 +16,6 @@ fi
# Grab our libs
. "`dirname $0`/setup-lib.sh"
HOSTNAME=`hostname -s`
apt-get install -y openvpn
cp -p $OURDIR/$HOSTNAME.crt $OURDIR/$HOSTNAME.key /etc/openvpn/
......
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