aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2011-11-30 12:08:30 +1000
committerDavid Walter Seikel2011-11-30 12:08:30 +1000
commit3ca04258afb84e275620776432f218301d8e2552 (patch)
tree1c7248cca17bfdfb84df7ec436d4def3e5649ea2
parentThat's what happens when you multitask too much between different languages, ... (diff)
downloadIGnoble-3ca04258afb84e275620776432f218301d8e2552.zip
IGnoble-3ca04258afb84e275620776432f218301d8e2552.tar.gz
IGnoble-3ca04258afb84e275620776432f218301d8e2552.tar.bz2
IGnoble-3ca04258afb84e275620776432f218301d8e2552.tar.xz
Oops, left un macro'd sudos in there. I'll get the back up cron job working yet.
-rwxr-xr-xstart-sim4
1 files changed, 2 insertions, 2 deletions
diff --git a/start-sim b/start-sim
index ea77553..12c8f8f 100755
--- a/start-sim
+++ b/start-sim
@@ -86,11 +86,11 @@ case $(basename $0) in
86 "backup-sim") 86 "backup-sim")
87 # Substitute underscores for spaces in the title, then add the full date and time to create the OAR file name. 87 # Substitute underscores for spaces in the title, then add the full date and time to create the OAR file name.
88 cmd="save oar ${inidir}/../../backups/${title// /_}-$(date '+%F_%T').oar" 88 cmd="save oar ${inidir}/../../backups/${title// /_}-$(date '+%F_%T').oar"
89 sudo -Hu opensim screen -r opensim/OpenSim_console -p "[${title}]" -X stuff "${cmd}$(/bin/echo -ne '\015')" 89 $SUDO screen -r opensim/OpenSim_console -p "[${title}]" -X stuff "${cmd}$(/bin/echo -ne '\015')"
90 ;; 90 ;;
91 91
92 "stop-sim") 92 "stop-sim")
93 sudo -Hu opensim screen -r opensim/OpenSim_console -p "[${title}]" -X stuff "shutdown$(/bin/echo -ne '\015')" 93 $SUDO screen -r opensim/OpenSim_console -p "[${title}]" -X stuff "shutdown$(/bin/echo -ne '\015')"
94 ;; 94 ;;
95esac 95esac
96 96