Introduction
The RPM::Versions
category creates hookable events for RPMs.
Note:
cPanel & WHM ships with preconfigured RPM::Versions
hooks.
RPM
RPM::Versions
events use the RPM
naming format, where RPM
is the name of the RPM to associate with the hook.
Available Stages:
pre
— Hook action code runs before the event.post
— Hook actions code runs after the event.
Action Code Runs As:
The WHM user.
Blocking Attribute:
Escalate Privileges Attribute:
Output parameters
Note:
The chosen stage determines the event's output. Select the appropriate tab to view output parameters for that stage.
Pre & Post
stages do not produce output.
Preconfigured RPM::Versions
hooks
The following table lists cPanel & WHM's preconfigured RPM::Versions
hooks:
RPM |
pre Script(s) |
post Script(s) |
courier-imap |
/scripts/precourierup |
|
courier-authlib |
None. |
/scripts/postcourier-authlibup |
dovecot |
/scripts/predovecotup |
/scripts/postdovecotup |
exim |
/scripts/preeximup |
/scripts/posteximup |
proftpd |
/scripts/preftpup |
/scripts/postftpinstall |
pure-ftpd |
/scripts/preftpup |
/scripts/postftpinstall |
MySQL50-server |
/scripts/premysqlup |
/scripts/postmysqlinstall |
MySQL51-server |
/scripts/premysqlup |
/scripts/postmysqlinstall |
MySQL55-server |
/scripts/premysqlup |
/scripts/postmysqlinstall |
nsd |
/scripts/prednsup |
/scripts/postnsdup |
Note:
The /var/cpanel/legacy_hooks
touch file determines whether the system has already created these hooks. To prevent the creation of these hooks, touch the file before you install cPanel & WHM.