From fe2226c702d61b7a5c9c239cf4e4db62ca39a47e Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Sat, 11 Jun 2011 14:22:16 +0000 Subject: [PATCH] also allow rsyncOpts with t --- lsyncd.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lsyncd.lua b/lsyncd.lua index bde4826..7a22246 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -3209,6 +3209,13 @@ local default_rsync = { if not config.target then error("default.rsync needs 'target' configured", 4) 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, ----- @@ -3402,6 +3409,12 @@ local default_rsyncssh = { -- Checks the configuration. -- 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 error("default.rsyncssh needs 'host' configured", 4) end