OS4X plugin os4xplugin gzip

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


Purpose

Compressing every single file defined in the passed XML via gzip. The original files are exchanged in the file system using the gzip process. The extension ".gz" is appended to each file. The new file name is changed in the XML file. The compression node "compression" in the XML is changed to "gzip" for each file.

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