From a7219bab0de6c1e22d99cf722b8e588427a012ad Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 4 Jul 2019 18:16:18 +1000 Subject: Silly script to get around the lack of includes in ROBUST. This'll be temporary until I get around to adding includes to ROBUST. --- scripts/start-sim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'scripts/start-sim') 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() done } + if [ $USER = "${OS_USER}" ] then SUDO="" @@ -91,10 +92,10 @@ case $(basename $0) in if [ ! -e ${PRGDIR}/../../caches/${tgt}.pid ] then if [ "x$tgt" = "xROBUST" ]; then -# TODO - the problem here is that the > bit is executed as the user, not as opensim. - $SUDO cat ${PRGDIR}/../../config/config.ini ${PRGDIR}/../../config/Robust.ini.template >${PRGDIR}/../../config/Robust.ini -# $SUDO chown -R ${OS_USER}:${OS_USER} ${PRGDIR}/../../config/Robust.ini - chmod 640 ${PRGDIR}/../../config/Robust.ini + pushd ${PRGDIR}/../scripts + $SUDO ./robust-include + popd + cmd="${cmd} -inifile=${PRGDIR}/../../config/Robust.ini" ${tmux_command} split-window -hp 50 -t "${tmux_session}:" "${cmd}" else ${tmux_command} new-window -dn "${title}" -t "${tmux_session}:${num}" "${cmd}" -- cgit v1.1