mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-07 09:04:05 +00:00
Fix lpostcmd prepare to work with recent changes
This commit is contained in:
parent
19b08adf35
commit
5b76dc1cb6
@ -62,7 +62,7 @@ local rsyncpostcmd = {
|
|||||||
|
|
||||||
-- called before anything else
|
-- called before anything else
|
||||||
-- builds the target from host and targetdir
|
-- builds the target from host and targetdir
|
||||||
prepare = function(config)
|
prepare = function(config, level, skipTarget)
|
||||||
if not config.host then
|
if not config.host then
|
||||||
error("rsyncpostcmd neets 'host' configured", 4)
|
error("rsyncpostcmd neets 'host' configured", 4)
|
||||||
end
|
end
|
||||||
@ -72,7 +72,7 @@ local rsyncpostcmd = {
|
|||||||
if not config.target then
|
if not config.target then
|
||||||
config.target = config.host .. ":" .. config.targetdir
|
config.target = config.host .. ":" .. config.targetdir
|
||||||
end
|
end
|
||||||
return default.rsync.prepare(config)
|
return default.rsync.prepare(config, level, skipTarget)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user