This commit is contained in:
Axel Kittenberger 2011-02-08 15:21:39 +00:00
parent 5d75b80403
commit cbfed8ee99
1 changed files with 6 additions and 5 deletions

View File

@ -22,11 +22,12 @@ local rsyncpostcmd = {
-- if the event is a blanket event and not the startup,
-- its there to spawn the webservice restart at the target.
if event.etype == "Blanket" then
-- uses rawget to test if "isRestart" has been set without
-- uses rawget to test if "isPostcmd" has been set without
-- triggering an error if not.
local isPostcmd = rawget(event, "isPostcmd")
if event.isPostcmd then
spawn(event, "/usr/bin/ssh", config.host, config.postcmd)
spawn(event, "/usr/bin/ssh",
config.host, config.postcmd)
return
else
-- this is the startup, forwards it to default routine.