Difference between revisions of "OS4X plugin os4xplugin copy"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category:Plugins]] | |
− | + | == Purpose == | |
− | + | This plugin copies all files contained in the order into the OS4X temporary folder and modifies the XML file. The information is based on the XML file transferred. | |
+ | Each XML file entry also receives the entry "<code>type="copy"</code>" (this entry causes this file to be deleted at the end of the plugin processing). | ||
− | == | + | == Requirements == |
+ | * File <code>/etc/os4x.conf</code> or configuration file referenced by environment variable <code>$OS4X_CFGFILE</code>. The temporary directory and the license file are obtained via the database that is configured here. | ||
− | * | + | == Configuration == |
+ | * Target folder is in the OS4X configuration table <tableprefix><code>configurations</code> (default: <code>os4x_configuration</code>") in line <code>name</code>=<code>tmp_directory</code > | ||
− | == | + | == Return codes == |
− | + | *0: everything OK | |
− | * | + | *1: Number of parameters != 1; Config file <code>/etc/os4x.conf</code> not found; Config in database not readable; License not valid; XML file invalid |
− | + | *5: File in OS4X job does not exist. | |
− | + | *254: Copy of a file not possible (copy cannot be written) | |
− | 0: | + | *255: Copy of a file not possible (original not readable) |
− | |||
− | 1: | ||
− | |||
− | 254: | ||
− | |||
− | 255: |
Latest revision as of 08:30, 29 July 2024
Purpose
This plugin copies all files contained in the order into the OS4X temporary folder and modifies the XML file. The information is based on the XML file transferred.
Each XML file entry also receives the entry "type="copy"
" (this entry causes this file to be deleted at the end of the plugin processing).
Requirements
- File
/etc/os4x.conf
or configuration file referenced by environment variable$OS4X_CFGFILE
. The temporary directory and the license file are obtained via the database that is configured here.
Configuration
- Target folder is in the OS4X configuration table <tableprefix>
configurations
(default:os4x_configuration
") in linename
=tmp_directory
Return codes
- 0: everything OK
- 1: Number of parameters != 1; Config file
/etc/os4x.conf
not found; Config in database not readable; License not valid; XML file invalid - 5: File in OS4X job does not exist.
- 254: Copy of a file not possible (copy cannot be written)
- 255: Copy of a file not possible (original not readable)