diff options
Diffstat (limited to 'scripts/start-sim')
-rwxr-xr-x | scripts/start-sim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/start-sim b/scripts/start-sim index 4bcc803..1414826 100755 --- a/scripts/start-sim +++ b/scripts/start-sim | |||
@@ -22,6 +22,7 @@ function wait_for_text() | |||
22 | done | 22 | done |
23 | } | 23 | } |
24 | 24 | ||
25 | |||
25 | if [ $USER = "${OS_USER}" ] | 26 | if [ $USER = "${OS_USER}" ] |
26 | then | 27 | then |
27 | SUDO="" | 28 | SUDO="" |
@@ -91,10 +92,10 @@ case $(basename $0) in | |||
91 | if [ ! -e ${PRGDIR}/../../caches/${tgt}.pid ] | 92 | if [ ! -e ${PRGDIR}/../../caches/${tgt}.pid ] |
92 | then | 93 | then |
93 | if [ "x$tgt" = "xROBUST" ]; then | 94 | if [ "x$tgt" = "xROBUST" ]; then |
94 | # TODO - the problem here is that the > bit is executed as the user, not as opensim. | 95 | pushd ${PRGDIR}/../scripts |
95 | $SUDO cat ${PRGDIR}/../../config/config.ini ${PRGDIR}/../../config/Robust.ini.template >${PRGDIR}/../../config/Robust.ini | 96 | $SUDO ./robust-include |
96 | # $SUDO chown -R ${OS_USER}:${OS_USER} ${PRGDIR}/../../config/Robust.ini | 97 | popd |
97 | chmod 640 ${PRGDIR}/../../config/Robust.ini | 98 | cmd="${cmd} -inifile=${PRGDIR}/../../config/Robust.ini" |
98 | ${tmux_command} split-window -hp 50 -t "${tmux_session}:" "${cmd}" | 99 | ${tmux_command} split-window -hp 50 -t "${tmux_session}:" "${cmd}" |
99 | else | 100 | else |
100 | ${tmux_command} new-window -dn "${title}" -t "${tmux_session}:${num}" "${cmd}" | 101 | ${tmux_command} new-window -dn "${title}" -t "${tmux_session}:${num}" "${cmd}" |