mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-11-10 15:20:58 +00:00
also allow rsyncOpts with t
This commit is contained in:
parent
18dda7629b
commit
fe2226c702
13
lsyncd.lua
13
lsyncd.lua
@ -3209,6 +3209,13 @@ local default_rsync = {
|
|||||||
if not config.target then
|
if not config.target then
|
||||||
error("default.rsync needs 'target' configured", 4)
|
error("default.rsync needs 'target' configured", 4)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if config.rsyncOpts then
|
||||||
|
if config.rsyncOps then
|
||||||
|
error("'rsyncOpts' and 'rsyncOps' provided in config, decide for one.")
|
||||||
|
end
|
||||||
|
config.rsyncOps = config.rsyncOpts
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
-----
|
-----
|
||||||
@ -3402,6 +3409,12 @@ local default_rsyncssh = {
|
|||||||
-- Checks the configuration.
|
-- Checks the configuration.
|
||||||
--
|
--
|
||||||
prepare = function(config)
|
prepare = function(config)
|
||||||
|
if config.rsyncOpts then
|
||||||
|
if config.rsyncOps then
|
||||||
|
error("'rsyncOpts' and 'rsyncOps' provided in config, decide for one.")
|
||||||
|
end
|
||||||
|
config.rsyncOps = config.rsyncOpts
|
||||||
|
end
|
||||||
if not config.host then
|
if not config.host then
|
||||||
error("default.rsyncssh needs 'host' configured", 4)
|
error("default.rsyncssh needs 'host' configured", 4)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user