2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

When xdcp files to CN and CN is controlled by a SN, xcat will push (#5102)

files to SN first (site.SNsyncfiledir). This should be run as admin
for normal user as they cannot touch that directory.
This commit is contained in:
Bin Xu 2018-04-13 16:58:42 +08:00 committed by yangsong
parent fa78cd7841
commit 4b1709e59d

View File

@ -645,6 +645,12 @@ sub process_servicenodes_xdcp
if (grep(/^--nodestatus$/, @$args)) {
push(@{ $addreq->{arg} }, "--nodestatus"); # return nodestatus
}
if (defined($req->{username}) && ($req->{username}->[0] ne "root")) {
# Using `root` when sync temporary files to `site.SNsyncfiledir` (default: /var/xcat/syncfiles)
push(@{ $addreq->{arg} }, "-l");
push(@{ $addreq->{arg} }, "root");
}
push(@{ $addreq->{arg} }, "-v");
push(@{ $addreq->{arg} }, "-s");
push(@{ $addreq->{arg} }, "-F");