OS4X plugin os4xplugin copy

From OS4X
Revision as of 08:30, 29 July 2024 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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 line name=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)