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