mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-08 09:18:30 +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,
|
-- if the event is a blanket event and not the startup,
|
||||||
-- its there to spawn the webservice restart at the target.
|
-- its there to spawn the webservice restart at the target.
|
||||||
if event.etype == "Blanket" then
|
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.
|
-- triggering an error if not.
|
||||||
local isPostcmd = rawget(event, "isPostcmd")
|
local isPostcmd = rawget(event, "isPostcmd")
|
||||||
if event.isPostcmd then
|
if event.isPostcmd then
|
||||||
spawn(event, "/usr/bin/ssh", config.host, config.postcmd)
|
spawn(event, "/usr/bin/ssh",
|
||||||
|
config.host, config.postcmd)
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
-- this is the startup, forwards it to default routine.
|
-- this is the startup, forwards it to default routine.
|
||||||
|
Loading…
Reference in New Issue
Block a user