diff options
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 | ||