Revision 4fb58eb6
Added by Alexis Mousset about 7 years ago
techniques/fileDistribution/copyGitFile/2.0/copyFileFromSharedFolder.st | ||
---|---|---|
string => "0",
|
||
ifvarclass => "!enable_suid_${index}.!enable_sgid_${index}";
|
||
|
||
defaults:
|
||
# Add a trailing slash to force considering destination as a directory and avoid replacing it with a file
|
||
"copyfile[${index}][destination]" string => "${copyfile[${index}][destination]}/", if_match_regex => ".*[^\/]",
|
||
ifvarclass => "pass1.!is_file_${index}";
|
||
|
||
classes:
|
||
"is_valid" not => strcmp("&SHARED_FILES_FOLDER&", "");
|
||
|
techniques/fileDistribution/copyGitFile/2.0/metadata.xml | ||
---|---|---|
</SECTION>
|
||
<INPUT>
|
||
<NAME>COPYFILE_DESTINATION</NAME>
|
||
<DESCRIPTION>Destination of the file</DESCRIPTION>
|
||
<DESCRIPTION>Full path of destination file or directory</DESCRIPTION>
|
||
<LONGDESCRIPTION>This is the absolute path of the file/folder on the managed node</LONGDESCRIPTION>
|
||
</INPUT>
|
||
<SELECT1>
|
techniques/fileDistribution/copyGitFile/2.1/copyFileFromSharedFolder.st | ||
---|---|---|
string => "0",
|
||
ifvarclass => "(!enable_suid_${index}.!enable_sgid_${index})|!(authorize_sticky_on_folder_${index}|is_file_${index})";
|
||
|
||
defaults:
|
||
# Add a trailing slash to force considering destination as a directory and avoid replacing it with a file
|
||
"copyfile[${index}][destination]" string => "${copyfile[${index}][destination]}/", if_match_regex => ".*[^\/]",
|
||
ifvarclass => "pass1.!is_file_${index}";
|
||
|
||
|
||
classes:
|
||
"is_valid" not => strcmp("&SHARED_FILES_FOLDER&", "");
|
||
|
techniques/fileDistribution/copyGitFile/2.1/metadata.xml | ||
---|---|---|
</SECTION>
|
||
<INPUT>
|
||
<NAME>COPYFILE_DESTINATION</NAME>
|
||
<DESCRIPTION>Destination of the file</DESCRIPTION>
|
||
<DESCRIPTION>Full path of destination file or directory</DESCRIPTION>
|
||
<LONGDESCRIPTION>This is the absolute path of the file/folder on the managed node</LONGDESCRIPTION>
|
||
</INPUT>
|
||
<SELECT1>
|
Also available in: Unified diff
Fixes #10312: \"Download files from the shared folder\" behaving badly?