aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/go_live.sh
diff options
context:
space:
mode:
authorDavid Walter Seikel2011-11-27 19:31:33 +1000
committerDavid Walter Seikel2011-11-27 19:31:33 +1000
commitd8b6646a004060edf073b96065fdbb979baa2f68 (patch)
tree4f8d9af35f9758037cca167d255eaecb8e02c97e /go_live.sh
parentRename the start up script. (diff)
downloadIGnoble-d8b6646a004060edf073b96065fdbb979baa2f68.zip
IGnoble-d8b6646a004060edf073b96065fdbb979baa2f68.tar.gz
IGnoble-d8b6646a004060edf073b96065fdbb979baa2f68.tar.bz2
IGnoble-d8b6646a004060edf073b96065fdbb979baa2f68.tar.xz
Trying to make things safer for upgrades and some general tweaks.
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