import repository from arizona
[raven.git] / publish / gec8demo2 / phonehome / rundemo.sh
1 #!/bin/bash
2
3 VER=$1
4 REL=$2
5
6 echo $REL > /etc/mapcolor
7 echo $VER-$REL > /etc/gecdemoversion
8
9 mkdir -p /etc/owl/scripts.d
10 mkdir -p /etc/owl/conf.d
11 cp gecdemo /etc/owl/scripts.d
12 cp gecdemo.conf /etc/owl/conf.d
13
14 echo > /etc/owl/owl.conf
15 echo "[Owl]" >> /etc/owl/owl.conf
16 #echo "url = http://owl.cs.arizona.edu/owl_beta/" >> /etc/owl/owl.conf
17
18 if [ "$PLC_NAME" == "VINI" ]; then
19    echo "databases="`cat /etc/slicename`,gecdemo,vini >> /etc/owl/owl.conf
20 else
21    echo "databases="`cat /etc/slicename`,gecdemo >> /etc/owl/owl.conf
22 fi
23
24 /etc/init.d/owl restart