mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-22 22:58:35 +00:00
accept default values for rsyncOpts as overrideable by rsyncOps
This commit is contained in:
parent
1ebbc229f3
commit
eb6df1bed4
@ -3294,7 +3294,7 @@ local default_rsync = {
|
|||||||
end
|
end
|
||||||
|
|
||||||
if config.rsyncOps then
|
if config.rsyncOps then
|
||||||
if config.rsyncOpts then
|
if config.rsyncOpts ~= "-lts" then
|
||||||
error("'rsyncOpts' and 'rsyncOps' provided in config, decide for one.")
|
error("'rsyncOpts' and 'rsyncOps' provided in config, decide for one.")
|
||||||
end
|
end
|
||||||
config.rsyncOpts = config.rsyncOps
|
config.rsyncOpts = config.rsyncOps
|
||||||
@ -3514,7 +3514,7 @@ local default_rsyncssh = {
|
|||||||
--
|
--
|
||||||
prepare = function(config)
|
prepare = function(config)
|
||||||
if config.rsyncOps then
|
if config.rsyncOps then
|
||||||
if config.rsyncOpts then
|
if config.rsyncOpts ~= "-lts" then
|
||||||
error("'rsyncOpts' and 'rsyncOps' provided in config, decide for one.")
|
error("'rsyncOpts' and 'rsyncOps' provided in config, decide for one.")
|
||||||
end
|
end
|
||||||
config.rsyncOpts = config.rsyncOps
|
config.rsyncOpts = config.rsyncOps
|
||||||
|
Loading…
x
Reference in New Issue
Block a user