diff options
author | onefang | 2020-04-20 23:24:11 +1000 |
---|---|---|
committer | onefang | 2020-04-20 23:24:11 +1000 |
commit | 3a0bf4fa9f25c11cfa5ab7dc6dd1c82e053bce3f (patch) | |
tree | b6cb0881227186c280265287d16f9329605165b2 /example/start.sh | |
parent | Missed a bit when updating the old scripts. (diff) | |
download | opensim-SC_OLD-3a0bf4fa9f25c11cfa5ab7dc6dd1c82e053bce3f.zip opensim-SC_OLD-3a0bf4fa9f25c11cfa5ab7dc6dd1c82e053bce3f.tar.gz opensim-SC_OLD-3a0bf4fa9f25c11cfa5ab7dc6dd1c82e053bce3f.tar.bz2 opensim-SC_OLD-3a0bf4fa9f25c11cfa5ab7dc6dd1c82e053bce3f.tar.xz |
The example "start a single sim" script also updated.
Diffstat (limited to 'example/start.sh')
-rwxr-xr-x | example/start.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/example/start.sh b/example/start.sh index d6ef48d..c479f78 100755 --- a/example/start.sh +++ b/example/start.sh | |||
@@ -1,4 +1,16 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | cd /opt/opensim_SC/current/bin | 3 | cd /opt/opensim_SC/current/bin |
4 | mono OpenSim.exe -inidirectory=../../config/simg01 | 4 | |
5 | source ../../common.sh | ||
6 | |||
7 | USER=$(whoami) | ||
8 | |||
9 | if [ $USER = "${OS_USER}" ] | ||
10 | then | ||
11 | SUDO="" | ||
12 | else | ||
13 | SUDO="sudo -Hu ${OS_USER}" | ||
14 | fi | ||
15 | |||
16 | ${SUDO} mono OpenSim.exe -inidirectory=../../config/sim01 | ||