OS4X plugin os4xplugin bzip2 decompress
Jump to navigation
Jump to search
Purpose
Tests each individual file in the job to see whether it is a file compressed using bzip2. If successful, the file will be decompressed. If the file does not have the ending ".bz2
" it will be renamed before decompression. If the file has the ending ".tbz
", the decompressed file will have the ending ".tar
".
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 "bzip2
" is searched for in the PATH
of the shell under which the plugin is started. This means that the bzip2 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