summaryrefslogtreecommitdiffstats
path: root/main/lsyncd/lpostcmd.patch
blob: 7f16bf4914a517340b0b367b5d65012930ce3b7f (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
diff -ru lsyncd-2.1.5.orig/examples/lpostcmd.lua lsyncd-2.1.5/examples/lpostcmd.lua
--- lsyncd-2.1.5.orig/examples/lpostcmd.lua	2015-01-30 09:28:40.376456301 -0200
+++ lsyncd-2.1.5/examples/lpostcmd.lua	2015-01-30 09:28:12.746457070 -0200
@@ -6,7 +6,7 @@
 -- after every successfullycompleted rsync operation.
 -- for example to restart servlets on the target host or so.
 
+rsyncpostcmd = {
-local rsyncpostcmd = {
 
 	-- based on default rsync.
 	default.rsync,
@@ -83,12 +83,3 @@
 	end
 }
 
-
-sync {
-	rsyncpostcmd,
-	source = "src",
-	host = "beetle",
-	targetdir = "/path/to/trg",
-	postcmd = "/usr/local/bin/restart-servelt.sh",
-}
-