diff options
author | David Walter Seikel | 2011-11-27 19:31:33 +1000 |
---|---|---|
committer | David Walter Seikel | 2011-11-27 19:31:33 +1000 |
commit | d8b6646a004060edf073b96065fdbb979baa2f68 (patch) | |
tree | 4f8d9af35f9758037cca167d255eaecb8e02c97e /go_live.sh | |
parent | Rename the start up script. (diff) | |
download | IGnoble-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-x | go_live.sh | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,17 +1,19 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | OSPATH="/opt/opensim" | ||
4 | |||
3 | for i in $(seq 99) | 5 | for i in $(seq 99) |
4 | do | 6 | do |
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 |
11 | done | 13 | done |
12 | 14 | ||
13 | sudo chmod 755 /var/log/opensim | 15 | sudo chmod 755 /var/log/opensim |
14 | sudo chmod 755 /var/run/opensim | 16 | sudo chmod 755 /var/run/opensim |
15 | sudo chown -R opensim:opensim /opt/opensim/opensim-0.7.1.1-infinitegrid-03 | 17 | sudo chown -R opensim:opensim $OSPATH/opensim-0.7.1.1-infinitegrid-03 |
16 | sudo chown -R opensim:opensim /opt/opensim/modules | 18 | sudo chown -R opensim:opensim $OSPATH/modules |
17 | 19 | ||