aports/main/lsyncd/lpostcmd.patch
2014-09-18 08:48:22 +00:00

26 lines
575 B
Diff

--- a/examples/lpostcmd.lua
+++ b/examples/lpostcmd.lua
@@ -25,7 +25,7 @@
-- uses rawget to test if "isPostcmd" has been set without
-- triggering an error if not.
local isPostcmd = rawget(event, "isPostcmd")
- if event.isPostcmd then
+ if isPostcmd then
spawn(event, "/usr/bin/ssh",
config.host, config.postcmd)
return
@@ -75,13 +75,3 @@
return default.rsync.prepare(config)
end
}
-
-
-sync {
- rsyncpostcmd,
- source = "src",
- host = "beetle",
- targetdir = "/path/to/trg",
- postcmd = "/usr/local/bin/restart-servelt.sh",
-}
-