diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-12-05 08:55:22 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-12-05 08:55:40 +0000 |
commit | 61e53274600c0ab7fc52b6e1cd6b5367fec2e5d4 (patch) | |
tree | 63da582dc8305b886398d5841c115ebf7fc73c15 /main/lsyncd/lpostcmd.patch | |
parent | bb2ea437caa260d21eb03dff1883bf1cb4908fd5 (diff) | |
download | aports-61e53274600c0ab7fc52b6e1cd6b5367fec2e5d4.tar.bz2 aports-61e53274600c0ab7fc52b6e1cd6b5367fec2e5d4.tar.xz |
main/lsyncd: more lpostcmd patching
Diffstat (limited to 'main/lsyncd/lpostcmd.patch')
-rw-r--r-- | main/lsyncd/lpostcmd.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/main/lsyncd/lpostcmd.patch b/main/lsyncd/lpostcmd.patch index cf0254573e..c5d6944193 100644 --- a/main/lsyncd/lpostcmd.patch +++ b/main/lsyncd/lpostcmd.patch @@ -1,5 +1,14 @@ --- 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. @@ -9,6 +18,15 @@ 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 @@ -75,13 +75,3 @@ return default.rsync.prepare(config) end |