mirror of https://github.com/octoleo/lsyncd.git
_extra will be the generic future extender, if someone absoletly must do it
This commit is contained in:
parent
ab36ab7823
commit
ddbf2c2a19
|
@ -94,10 +94,10 @@ default.rsyncssh = {
|
||||||
config.ssh.binary,
|
config.ssh.binary,
|
||||||
'<', table.concat(paths, config.xargs.delimiter),
|
'<', table.concat(paths, config.xargs.delimiter),
|
||||||
params,
|
params,
|
||||||
config.ssh._xparams,
|
config.ssh._extra,
|
||||||
config.host,
|
config.host,
|
||||||
config.xargs.binary,
|
config.xargs.binary,
|
||||||
config.xargs._xparams
|
config.xargs._extra
|
||||||
)
|
)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
@ -255,8 +255,14 @@ default.rsyncssh = {
|
||||||
-- checks the configuration.
|
-- checks the configuration.
|
||||||
--
|
--
|
||||||
prepare = function(config)
|
prepare = function(config)
|
||||||
if not config.host then error('default.rsyncssh needs "host" configured', 4) end
|
|
||||||
if not config.targetdir then error('default.rsyncssh needs "targetdir" configured', 4) end
|
if not config.host then
|
||||||
|
error('default.rsyncssh needs "host" configured', 4)
|
||||||
|
end
|
||||||
|
|
||||||
|
if not config.targetdir then
|
||||||
|
error('default.rsyncssh needs "targetdir" configured', 4)
|
||||||
|
end
|
||||||
|
|
||||||
if config.rsyncOps then
|
if config.rsyncOps then
|
||||||
error('did you mean rsyncOpts with "t"?', 4)
|
error('did you mean rsyncOpts with "t"?', 4)
|
||||||
|
@ -328,7 +334,7 @@ default.rsyncssh = {
|
||||||
|
|
||||||
--
|
--
|
||||||
-- extra parameters
|
-- extra parameters
|
||||||
_xparams = {'-0', 'rm -rf'}
|
_extra = { '-0', 'rm -rf' }
|
||||||
},
|
},
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -347,7 +353,7 @@ default.rsyncssh = {
|
||||||
|
|
||||||
--
|
--
|
||||||
-- extra parameters
|
-- extra parameters
|
||||||
_xparams = {}
|
_extra = { }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue