mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-12 14:17:47 +00:00
fixing rsync parameter generation, added password-file, thx to foxban
This commit is contained in:
parent
b1257b0d48
commit
3616dc64fe
@ -399,7 +399,7 @@ rsync.prepare = function(
|
|||||||
|
|
||||||
crsync._computed = { true }
|
crsync._computed = { true }
|
||||||
local computed = crsync._computed
|
local computed = crsync._computed
|
||||||
local computedN = 1
|
local computedN = 2
|
||||||
|
|
||||||
local shortFlags = {
|
local shortFlags = {
|
||||||
verbose = 'v',
|
verbose = 'v',
|
||||||
@ -461,18 +461,23 @@ rsync.prepare = function(
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if crsync.password_file then
|
||||||
|
computed[ computedN ] = '--password-file=' .. crsync.password_file
|
||||||
|
computedN = computedN + 1
|
||||||
|
end
|
||||||
|
|
||||||
if crsync.rsh then
|
if crsync.rsh then
|
||||||
computed[ computedN ] = '--rsh='..crsync.rsh
|
computed[ computedN ] = '--rsh=' .. crsync.rsh
|
||||||
computedN = computedN + 1
|
computedN = computedN + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
if crsync.rsync_path then
|
if crsync.rsync_path then
|
||||||
computed[ computedN ] = '--rsync-path='..crsync.rsync_path
|
computed[ computedN ] = '--rsync-path=' .. crsync.rsync_path
|
||||||
computedN = computedN + 1
|
computedN = computedN + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
if crsync.temp_dir then
|
if crsync.temp_dir then
|
||||||
computed[ computedN ] = '--temp-dir='..crsync.temp_dir
|
computed[ computedN ] = '--temp-dir=' .. crsync.temp_dir
|
||||||
computedN = computedN + 1
|
computedN = computedN + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user