diff options
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 | ||