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