aboutsummaryrefslogtreecommitdiffstats
path: root/main/lsyncd/lpostcmd.patch
blob: cf0254573ea42456ae7fbf1e2e186b19d509c5bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- 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",
-}
-