These are the scripts executed during installation and uninstallation of a module. For an RPM distributive these are ordinary PREIN, POSTIN, PREUN, POSTUN scripts. For shell-based distributives, the installation script will be contained in the self-extracting script body, while the uninstallation script is a separate file that will be executed during removal of a module from Plesk. This file should be located in the directory:
<PRODUCT_ROOT_D>/var/modules/<module name>/uninstall>In respect to Plesk, installation or uninstallation of a module will be carried out either by installing or uninstalling an RPM package, or by executing a shell script for Standard Plesk. Thus a module itself is responsible for its correct installation and registration. The modulemng utility is used for launching installation/uninstallation process.
Installation
The following actions should be performed during installation process:
See example of installation scripts.
Uninstallation
To uninstall a module, you need to uninstall an RPM package
or simply execute a /var/modules/<module_name>/uninstall
shell script. The following actions should be perform during uninstallation
process:
See example of uninstallation scripts.