mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-05 16:12:32 +00:00
fixing default.direct regression
This commit is contained in:
parent
1b6d9bb65a
commit
1217fef9ba
@ -34,6 +34,21 @@ local direct = { }
|
||||
|
||||
default.direct = direct
|
||||
|
||||
|
||||
--
|
||||
-- known configuration parameters
|
||||
--
|
||||
direct.checkgauge = {
|
||||
--
|
||||
-- inherits rsync config params
|
||||
--
|
||||
default.rsync.checkgauge,
|
||||
|
||||
rsyncExitCodes = true,
|
||||
onMove = true,
|
||||
}
|
||||
|
||||
|
||||
--
|
||||
-- Spawns rsync for a list of events
|
||||
--
|
||||
@ -154,6 +169,12 @@ direct.delay = 1
|
||||
--
|
||||
direct.onMove = true
|
||||
|
||||
--
|
||||
-- Rsync configuration for startup.
|
||||
--
|
||||
direct.rsync = default.rsync.rsync
|
||||
direct.rsyncExitCodes = default.rsyncExitCodes
|
||||
|
||||
--
|
||||
-- By default do deletes.
|
||||
--
|
||||
|
@ -48,9 +48,8 @@ default.checkgauge = {
|
||||
onStartup = true,
|
||||
onMove = true,
|
||||
prepare = true,
|
||||
-- rsyncExitCodes = true, -- TODO
|
||||
source = true,
|
||||
-- sshExitCodes = true -- TODO
|
||||
target = true,
|
||||
}
|
||||
|
||||
--
|
||||
|
@ -47,7 +47,7 @@ sync {ccircuit, source ="]]..srcdir..[[", target = "]]..trgdir..[["}
|
||||
|
||||
|
||||
-- test if the filename exists, fails if this is different to expect
|
||||
local function testfile(filename)
|
||||
local function testfile(filename)
|
||||
local stat, err = posix.stat(filename)
|
||||
if not stat then
|
||||
cwriteln("failure: ",filename," missing");
|
||||
|
Loading…
Reference in New Issue
Block a user