aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example/start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example/start.sh')
-rwxr-xr-xexample/start.sh14
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
3cd /opt/opensim_SC/current/bin 3cd /opt/opensim_SC/current/bin
4mono OpenSim.exe -inidirectory=../../config/simg01 4
5source ../../common.sh
6
7USER=$(whoami)
8
9if [ $USER = "${OS_USER}" ]
10then
11 SUDO=""
12else
13 SUDO="sudo -Hu ${OS_USER}"
14fi
15
16${SUDO} mono OpenSim.exe -inidirectory=../../config/sim01