Guide to Standardized Hooks - RPM::Versions Functions

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

  • /scripts/postcourierinstall
  • /scripts/postcourierup
  • /scripts/postcourier-imapup

courier-authlib

None.

/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

/scripts/premysqlup

/scripts/postmysqlinstall  
/scripts/postmysqlup

MySQL51-server

/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. 

  • 7 Users Found This Useful
Was this answer helpful?

Related Articles

The cPanel Interface

For  cPanel  &  WHM  version  58 Overview The cPanel interface is...

User Preferences

For cPanel & WHM version 58 Overview This document outlines how to access your cPanel...

Manage External Authentications

For cPanel & WHM version 58 Overview Manage credentials Additional documentation...

What is cPanelID?

In This Article:  Overview ServicesHow to get a cPanelID cPanelID External...

Guide to cPanel Interface Customization - cPanel Style Development

Introduction You can develop custom styles that modify the appearance of the cPanel interface....