From e8cab6d2ca4ade02ae0889e61a7372c12cf5140c Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 28 Nov 2016 00:00:57 +1000 Subject: Fix up startup a little. --- scripts/start-sim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/start-sim b/scripts/start-sim index 6c87e09..c9cca04 100755 --- a/scripts/start-sim +++ b/scripts/start-sim @@ -29,7 +29,7 @@ fi if [ "x$1" = "x" ]; then tgt=$(basename $(pwd)) - num=$(echo ${tgt} | cut -c 4-) + num="$(echo ${tgt} | cut -c 4-)" elif [ -d "./$1" ]; then tgt=$1 elif [ -d "./sim$1" ]; then @@ -83,10 +83,11 @@ case $(basename $0) in if [ ! -e /var/run/opensim/${tgt}.pid ] then if [ "x$tgt" = "xROBUST" ]; then +# TODO - the problem here is that the > bit is executed as onefang, not as opensim. $SUDO cat ../config/config.ini ../config/Robust.ini.template >../config/Robust.ini - $SUDO chown -R opensim:opensim ../config/Robust.ini - $SUDO chmod 600 ../config/Robust.ini - ${tmux_command} split-window -vp 30 -t "${tmux_session}:" "${cmd}" +# $SUDO chown -R opensim:opensim ../config/Robust.ini + chmod 640 ../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}" fi -- cgit v1.1