mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-07 09:04:05 +00:00
fixes
This commit is contained in:
parent
5d75b80403
commit
cbfed8ee99
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user