The update script is a little foreboding and I don't want to mess it up. How can I change the script to prevent scheduled updates but still allow manual updates?
It appears as though I can delete the entire “Schedule Updates” region and change the Update Mode region
DEFINE REGION: Update Mode?
Set Variable COMMANDLINE to $CMDLINE$
If Variable COMMANDLINE Not Contains /update
Set Variable UPDATE_SCHEDULE to FALSE
If Variable MAINTENANCE Equals FALSE
Set Variable UPDATE_SCHEDULE to TRUE
Else
If Variable UPDATE_CONFIGURED Equals FALSE
Set Variable UPDATE_SCHEDULE to TRUE
End
End
If Variable UPDATE_SCHEDULE Equals TRUE
… blah blah blah
End
GoTo Label: End of Updates
End
To
DEFINE REGION: Update Mode?
Set Variable UPDATE_SCHEDULE to FALSE
GoTo Label: End of Updates
End
I saw a msg about a sample script that does not include the scheduler stuff, but could not find it in the sample scripts.
Code: Select all
Code: Select all