mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-13 14:43:09 +00:00
repairing default.direct regression
This commit is contained in:
parent
e0c1b25a1b
commit
887b8a004f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user