import repository from arizona
[raven.git] / publish / gec4demo / 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 /usr/local/owl/scripts.d
10 mkdir -p /usr/local/owl/conf.d
11 cp gecdemo /usr/local/owl/scripts.d
12 cp gecdemo.conf /usr/local/owl/conf.d
13
14 echo > /usr/local/owl/owld.conf
15 echo "[Owld]" >> /usr/local/owl/owld.conf
16 echo "databases="`cat /etc/slicename`,gecdemo >> /usr/local/owl/owld.conf
17
18 /etc/init.d/owld restart