diff options
author | David Walter Seikel | 2016-11-28 00:00:57 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-11-28 00:00:57 +1000 |
commit | e8cab6d2ca4ade02ae0889e61a7372c12cf5140c (patch) | |
tree | 3c1ab2e70e96110e33fe5eec31847d656eff19c4 /scripts/start-sim | |
parent | Various little backup system fixes. (diff) | |
download | opensim-SC_OLD-e8cab6d2ca4ade02ae0889e61a7372c12cf5140c.zip opensim-SC_OLD-e8cab6d2ca4ade02ae0889e61a7372c12cf5140c.tar.gz opensim-SC_OLD-e8cab6d2ca4ade02ae0889e61a7372c12cf5140c.tar.bz2 opensim-SC_OLD-e8cab6d2ca4ade02ae0889e61a7372c12cf5140c.tar.xz |
Fix up startup a little.
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 6c87e09..c9cca04 100755 --- a/scripts/start-sim +++ b/scripts/start-sim | |||
@@ -29,7 +29,7 @@ fi | |||
29 | 29 | ||
30 | if [ "x$1" = "x" ]; then | 30 | if [ "x$1" = "x" ]; then |
31 | tgt=$(basename $(pwd)) | 31 | tgt=$(basename $(pwd)) |
32 | num=$(echo ${tgt} | cut -c 4-) | 32 | num="$(echo ${tgt} | cut -c 4-)" |
33 | elif [ -d "./$1" ]; then | 33 | elif [ -d "./$1" ]; then |
34 | tgt=$1 | 34 | tgt=$1 |
35 | elif [ -d "./sim$1" ]; then | 35 | elif [ -d "./sim$1" ]; then |
@@ -83,10 +83,11 @@ case $(basename $0) in | |||
83 | if [ ! -e /var/run/opensim/${tgt}.pid ] | 83 | if [ ! -e /var/run/opensim/${tgt}.pid ] |
84 | then | 84 | then |
85 | if [ "x$tgt" = "xROBUST" ]; then | 85 | if [ "x$tgt" = "xROBUST" ]; then |
86 | # TODO - the problem here is that the > bit is executed as onefang, not as opensim. | ||
86 | $SUDO cat ../config/config.ini ../config/Robust.ini.template >../config/Robust.ini | 87 | $SUDO cat ../config/config.ini ../config/Robust.ini.template >../config/Robust.ini |
87 | $SUDO chown -R opensim:opensim ../config/Robust.ini | 88 | # $SUDO chown -R opensim:opensim ../config/Robust.ini |
88 | $SUDO chmod 600 ../config/Robust.ini | 89 | chmod 640 ../config/Robust.ini |
89 | ${tmux_command} split-window -vp 30 -t "${tmux_session}:" "${cmd}" | 90 | ${tmux_command} split-window -hp 50 -t "${tmux_session}:" "${cmd}" |
90 | else | 91 | else |
91 | ${tmux_command} new-window -dn "[${title}]" -t "${tmux_session}:${num}" "${cmd}" | 92 | ${tmux_command} new-window -dn "[${title}]" -t "${tmux_session}:${num}" "${cmd}" |
92 | fi | 93 | fi |