diff options
Diffstat (limited to 'scripts/go_live.sh')
-rwxr-xr-x | scripts/go_live.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/go_live.sh b/scripts/go_live.sh new file mode 100755 index 0000000..21d7072 --- /dev/null +++ b/scripts/go_live.sh | |||
@@ -0,0 +1,12 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | OSPATH="/opt/opensim" | ||
4 | |||
5 | for i in $(seq 99) | ||
6 | do | ||
7 | j=$(printf "sim%02d" $i) | ||
8 | if [ -e "$OSPATH/config/$j" ] | ||
9 | then | ||
10 | sudo ln -s $OSPATH/config/$j/opensim-monit.conf /etc/monit/conf.d/$j.conf | ||
11 | fi | ||
12 | done | ||