From 887b8a004fc21e38daee11c863e3310981248eb4 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Tue, 2 Oct 2012 22:06:05 +0200 Subject: [PATCH] repairing default.direct regression --- default-direct.lua | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/default-direct.lua b/default-direct.lua index 8944f27..ed43810 100644 --- a/default-direct.lua +++ b/default-direct.lua @@ -9,6 +9,7 @@ -- Note: -- this is infact just a configuration using Layer 1 configuration -- like any other. It only gets compiled into the binary by default. +-- -- You can simply use a modified one, by copying everything into a -- config file of yours and name it differently. -- @@ -17,12 +18,21 @@ -- --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -if not default then error('default not loaded'); end -if not default.rsync then error('default-direct (currently) needs default.rsync loaded'); end -if default.direct then error('default-direct already loaded'); end +if not default then + error('default not loaded') +end + +if not default.rsync then + error('default-direct (currently) needs default.rsync loaded') +end + +if default.direct then + error('default-direct already loaded') +end default.direct = { - ----- + + -- -- Spawns rsync for a list of events -- action = function(inlet) @@ -149,12 +159,7 @@ default.direct = { ----- -- The rsync binary called. -- - rsyncBinary = '/usr/bin/rsync', - - ----- - -- For startup sync - -- - rsyncOpts = '-lts', + rsync = default.rsync.rsync, ----- -- By default do deletes.