start.sh 649 Bytes
Newer Older
1 2
#!/bin/bash

3
cd /opt/hp4-src
4
sudo git reset --hard
5 6
sudo git pull

7
cd /opt/hp4-ctrl
8
sudo git reset --hard
9
sudo git pull
10 11 12 13 14 15 16 17 18

hname="$(hostname | tr "." " " | awk '{print $1}')"

if [ "$hname" == "node-0" ] || 
   [ "$hname" == "node-1" ] || 
   [ "$hname" == "node-2" ] ||
   [ "$hname" == "node-3" ] ||
   [ "$hname" == "node-4" ]
then
19
  /opt/hp4-ctrl/vibrant-eval/remote-scripts/start_hp4.sh
20 21 22 23 24 25 26
elif [ "$hname" == "node-5" ] ||
     [ "$hname" == "node-6" ] ||
     [ "$hname" == "node-7" ] ||
     [ "$hname" == "node-8" ] ||
     [ "$hname" == "node-9" ] ||
     [ "$hname" == "node-10" ]
then
27
  /opt/hp4-ctrl/vibrant-eval/remote-scripts/h_config.sh
28
fi