aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/go_live.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xgo_live.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/go_live.sh b/go_live.sh
index 65e4a08..856b4ce 100755
--- a/go_live.sh
+++ b/go_live.sh
@@ -1,17 +1,19 @@
1#!/bin/bash 1#!/bin/bash
2 2
3OSPATH="/opt/opensim"
4
3for i in $(seq 99) 5for i in $(seq 99)
4do 6do
5 j=$(printf "sim%02d" $i) 7 j=$(printf "sim%02d" $i)
6 if [ -e "/opt/opensim/config/$j" ] 8 if [ -e "$OSPATH/config/$j" ]
7 then 9 then
8 sudo chown -R opensim:opensim /opt/opensim/config/$j 10 sudo chown -R opensim:opensim $OSPATH/config/$j
9 sudo ln -s /opt/opensim/config/$j/opensim-monit.conf /etc/monit/conf.d/$j.conf 11 sudo ln -s $OSPATH/config/$j/opensim-monit.conf /etc/monit/conf.d/$j.conf
10 fi 12 fi
11done 13done
12 14
13sudo chmod 755 /var/log/opensim 15sudo chmod 755 /var/log/opensim
14sudo chmod 755 /var/run/opensim 16sudo chmod 755 /var/run/opensim
15sudo chown -R opensim:opensim /opt/opensim/opensim-0.7.1.1-infinitegrid-03 17sudo chown -R opensim:opensim $OSPATH/opensim-0.7.1.1-infinitegrid-03
16sudo chown -R opensim:opensim /opt/opensim/modules 18sudo chown -R opensim:opensim $OSPATH/modules
17 19