OS4X plugin os4xplugin gzip decompress

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


Purpose

Tests each individual file in the job to see whether it is a gzip compressed file. If successful, the file will be decompressed. If the file does not have the ending ".gz" it will be renamed before decompression. If the file has the ending ".tgz", 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 "gzip" is searched for in the PATH of the shell under which the plugin is started. This means that the gzip 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