diff options
author | David Walter Seikel | 2011-11-30 12:08:30 +1000 |
---|---|---|
committer | David Walter Seikel | 2011-11-30 12:08:30 +1000 |
commit | 3ca04258afb84e275620776432f218301d8e2552 (patch) | |
tree | 1c7248cca17bfdfb84df7ec436d4def3e5649ea2 /start-sim | |
parent | That's what happens when you multitask too much between different languages, ... (diff) | |
download | IGnoble-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.
Diffstat (limited to 'start-sim')
-rwxr-xr-x | start-sim | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ;; |
95 | esac | 95 | esac |
96 | 96 | ||