Child pages
  • Guide to Standardized Hooks - RPM::Versions Functions
Skip to end of metadata
Go to start of metadata

 

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. 

This stage does not produce output.

This stage does not produce output.

Preconfigured RPM::Versions hooks

The following table lists cPanel & WHM's preconfigured RPM::Versions hooks:

RPMpre Script(s)post Script(s)
courier-imap

/scripts/precourierup

  • /scripts/postcourierinstall
  • /scripts/postcourierup
  • /scripts/postcourier-imapup
courier-authlibNone./scripts/postcourier-authlibup
dovecot /scripts/predovecotup /scripts/postdovecotup
exim /scripts/preeximup /scripts/posteximup
proftpd/scripts/preftpup/scripts/postftpinstall 
/scripts/postftpup
pure-ftpd /scripts/preftpup /scripts/postftpinstall 
/scripts/postftpup

MySQL50-server

Note:

We removed the MySQL50 RPM target in cPanel & WHM version 68.

/scripts/premysqlup /scripts/postmysqlinstall 
/scripts/postmysqlup

MySQL51-server

Note:

We removed the MySQL51 RPM target in cPanel & WHM version 68.

/scripts/premysqlup /scripts/postmysqlinstall 
/scripts/postmysqlup
MySQL55-server /scripts/premysqlup /scripts/postmysqlinstall 
/scripts/postmysqlup
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.