Patch Process with Language Packs | → 6.14.0 | Created: 6.12.1; Updated: 6.14.0 |
A version that is installed with additional languages can only be patched if the language packs of the target version are available. The patch process has been changed so that the language packs of the versions between start and target version have to be available too.
Example: The installation has to be patched from 6.11.1 to 6.12.0. In this case the language packs for the versions 6.11.2, 6.11.3, and 6.12.0 have to be available.
There are two ways of providing the necessary language packs:
Table of Contents |
The conventional way is to copy all necessary language packs in the folder containing the patch packet. Alternatively you can copy the language packs into a sub folder "LanguagePacks". Then, if the patch process is started accordingly to the installation guide, the language packs as well will be installed.
For patches over multiple versions with multiple languages you have to work with a lot of language packs. To simplify this the language packs can be downloaded and installed automatically. During the patch process all necessary language packs are downloaded from a sever, copied into the patch directory and installed.
Note: The machine to be patched have to have the permissions to connect to www.epages.de via http.
For each language and epages version a specific language key is needed to update the language packs automatically. These language keys are used on the command line when the patch is installed.
Windows: perl patch.pl prepare EPAGES612_LANG_FR_KEY=abc UNIX: patch.sh prepare EPAGES612_LANG_FR_KEY=abc
The language key variable name describes the target version and language. It must be created according to the following naming convention:
Windows: perl patch.pl [TARGET] EPAGES[RELEASE]_LANG_[LANGUAGE]_KEY=[KEY] UNIX: patch.sh [TARGET] EPAGES[RELEASE]_LANG_[LANGUAGE]_KEY=[KEY]
[TARGET] is the target that is executed in first place; usually 'prepare'.
The patch command line must contain all necessary language keys.
Example for Windows and French and Spanish:
perl patch.pl prepare EPAGES612_LANG_FR_KEY=abc EPAGES612_LANG_ES_KEY=123
If the patch shall be installed on Linux via RPM, the language key variables must be put in front of the yum (or zypper) command.
Example for French and Spanish:
Red Hat RHEL/CentOS:
EPAGES612_LANG_FR_KEY=abc EPAGES612_LANG_ES_KEY=123 yum update epages-patch --enablerepo epages-update
SuSE SLES:
zypper mr -e epages-update EPAGES612_LANG_FR_KEY=abc EPAGES612_LANG_ES_KEY=123 zypper update -y -r epages-update epages-patch zypper mr -d epages-update
The version 6.11.0 has to be patched to 6.12.0. French and Spanish are installed as additional languages. Therefore the following French and Spanish language packs are necessary for the patch: 6.11.1, 6.11.2, 6.11.3, and 6.12.0.
The release number of the target version is 6.12.0. The following variables have to be created for the patch process:
EPAGES612_LANG_FR_KEY EPAGES612_LANG_ES_KEY
The language keys for these two variables are needed.
The Windows patch has to be started as follows:
perl patch.pl prepare EPAGES612_LANG_FR_KEY=abc EPAGES612_LANG_ES_KEY=123