Scripts to deploy domtool across all hosts
[hcoop/scripts.git] / deploy-domtool-on-host
CommitLineData
af787010
CE
1#!/bin/bash -e
2
3if [ -z "$1" ]; then
4 echo "Must supply --slave or --server"
5 exit 1
6fi
7
8cd /afs/hcoop.net/common/domtool/build/$(hostname)/domtool2
9
10git checkout release # just in case
11git pull
12
13make
14
15if [ x"$2" = "x--bootstrap" ]; then
16 sudo make install
17 case $1 in
18 --server)
19 sudo insserv domtool-server
20 ;;
21 --slave)
22 sudo insserv domtool-slave
23 ;;
24 esac
25fi
26
27if [ "$1" = "--server" ]; then
28 echo "Installing Server"
29 sudo make install_server
30fi
31
32if [ "$1" = "--slave" ]; then
33 echo "Installing Slave"
34 sudo make install_slave
35fi