From 3ca04258afb84e275620776432f218301d8e2552 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 30 Nov 2011 12:08:30 +1000 Subject: Oops, left un macro'd sudos in there. I'll get the back up cron job working yet. --- start-sim | 4 ++-- 1 file 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 "backup-sim") # Substitute underscores for spaces in the title, then add the full date and time to create the OAR file name. cmd="save oar ${inidir}/../../backups/${title// /_}-$(date '+%F_%T').oar" - sudo -Hu opensim screen -r opensim/OpenSim_console -p "[${title}]" -X stuff "${cmd}$(/bin/echo -ne '\015')" + $SUDO screen -r opensim/OpenSim_console -p "[${title}]" -X stuff "${cmd}$(/bin/echo -ne '\015')" ;; "stop-sim") - sudo -Hu opensim screen -r opensim/OpenSim_console -p "[${title}]" -X stuff "shutdown$(/bin/echo -ne '\015')" + $SUDO screen -r opensim/OpenSim_console -p "[${title}]" -X stuff "shutdown$(/bin/echo -ne '\015')" ;; esac -- cgit v1.1