aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example/start.sh
blob: c479f7884cd4828159a4ce05488461de5fbfa649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

cd /opt/opensim_SC/current/bin

source ../../common.sh

USER=$(whoami)

if [ $USER = "${OS_USER}" ]
then
    SUDO=""
else
    SUDO="sudo -Hu ${OS_USER}"
fi

${SUDO} mono OpenSim.exe -inidirectory=../../config/sim01