mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-05 16:12:32 +00:00
adding usermap/groupmap
This commit is contained in:
parent
d444ccb2d2
commit
2ff9ae72be
@ -4,9 +4,11 @@
|
||||
"chown",
|
||||
"copy_dirlinks",
|
||||
"existing",
|
||||
"groupmap",
|
||||
"omit_dir_times",
|
||||
"omit_dir_times"
|
||||
"omit_link_times",
|
||||
"usermap",
|
||||
enhancement: settings{ } now checks for unknown entries and errors if so.
|
||||
change: Lsyncd now writes a startup log message before daemonizing
|
||||
does in case logging fails, it is recognized before it cannot
|
||||
|
@ -67,6 +67,7 @@ rsync.checkgauge = {
|
||||
executability = true,
|
||||
existing = true,
|
||||
group = true,
|
||||
groupmap = true,
|
||||
hard_links = true,
|
||||
ignore_times = true,
|
||||
inplace = true,
|
||||
@ -90,6 +91,7 @@ rsync.checkgauge = {
|
||||
timeout = true,
|
||||
times = true,
|
||||
update = true,
|
||||
usermap = true,
|
||||
verbose = true,
|
||||
whole_file = true,
|
||||
xattrs = true,
|
||||
@ -409,9 +411,10 @@ rsync.prepare =
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
crsync._computed = { true }
|
||||
|
||||
local computed = crsync._computed
|
||||
|
||||
local computedN = 2
|
||||
|
||||
local shortFlags = {
|
||||
@ -503,6 +506,12 @@ rsync.prepare =
|
||||
computedN = computedN + 1
|
||||
end
|
||||
|
||||
if crsync.groupmap
|
||||
then
|
||||
computed[ computedN ] = '--groupmap=' .. crsync.groupmap
|
||||
computedN = computedN + 1
|
||||
end
|
||||
|
||||
if crsync.existing
|
||||
then
|
||||
computed[ computedN ] = '--existing'
|
||||
@ -544,6 +553,12 @@ rsync.prepare =
|
||||
computed[ computedN ] = '--timeout=' .. crsync.timeout
|
||||
computedN = computedN + 1
|
||||
end
|
||||
|
||||
if crsync.usermap
|
||||
then
|
||||
computed[ computedN ] = '--usermap=' .. crsync.usermap
|
||||
computedN = computedN + 1
|
||||
end
|
||||
|
||||
if shortsN ~= 2
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user