OS4X plugin os4xplugin zip
Jump to navigation
Jump to search
Purpose
All files from the OS4X job will be packed into a new ZIP archive. The ZIP program in the operating system (found via PATH) is used here. The name of the ZIP archive is determined dynamically and temporarily at runtime. Directory hierarchies are eliminated here.
All files of the order are removed from the order description (logically, not physically); the ZIP archive created is then the only file entry.
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
The program "zip
" is searched for in the PATH
of the shell under which the plugin is started. This means that the zip version used can be influenced by clever positioning or definition of the default PATH.
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 - all others: the return code of the ZIP call