diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-09-18 08:48:07 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-09-18 08:48:22 +0000 |
commit | 080e012e1cc56363171c2544a7591918c7be26ad (patch) | |
tree | 4c43095ff118eb7f15f2026eea02e5d8c32257a6 /main/lsyncd/lpostcmd.patch | |
parent | e5e8b6436aa316124c7ba1f6146cd67119afcf71 (diff) | |
download | aports-080e012e1cc56363171c2544a7591918c7be26ad.tar.bz2 aports-080e012e1cc56363171c2544a7591918c7be26ad.tar.xz |
main/lsyncd: upgrade to 2.1.5
Diffstat (limited to 'main/lsyncd/lpostcmd.patch')
-rw-r--r-- | main/lsyncd/lpostcmd.patch | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/main/lsyncd/lpostcmd.patch b/main/lsyncd/lpostcmd.patch index 46ca7b9785..cf0254573e 100644 --- a/main/lsyncd/lpostcmd.patch +++ b/main/lsyncd/lpostcmd.patch @@ -1,44 +1,25 @@ --- a/examples/lpostcmd.lua +++ b/examples/lpostcmd.lua -@@ -6,7 +6,7 @@ - -- after every successfullycompleted rsync operation. - -- for example to restart servlets on the target host or so. - --local rsyncpostcmd = { -+rsyncpostcmd = { - - -- based on default rsync. - default.rsync, @@ -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", + spawn(event, "/usr/bin/ssh", config.host, config.postcmd) return -@@ -58,7 +58,7 @@ - return default.collect(agent,exitcode) - end - error("this should never be reached") -- end -+ end, - - -- called before anything else - -- builds the target from host and targetdir -@@ -74,14 +74,5 @@ - end +@@ -75,13 +75,3 @@ return default.rsync.prepare(config) end --} + } - - -sync { -- rsyncpostcmd, +- rsyncpostcmd, - source = "src", - host = "beetle", - targetdir = "/path/to/trg", - postcmd = "/usr/local/bin/restart-servelt.sh", - } - +-} +- |