Child pages
  • Guide to Standardized Hooks - RPM::Versions Functions

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

Excerpt

The RPM::Versions category creates hookable events for RPMs.


Note
titleNote:

cPanel & WHM ships with preconfigured RPM::Versions hooks.

RPM


Section


Column
width50%


Panel
bgColor#FFFFFF
borderStylenone

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.



Column
bgColor#FFFFFF
width50%
borderStylenone


Panel
bgColor#F2F2F2
borderStylenone


Panel
bgColor#FFFFFF
borderStylenone


Section


Column
width40%

Action Code Runs As:


Column

The WHM user.



Section


Column
width40%

Blocking Attribute:


Column



Section


Column
width40%

Escalate Privileges Attribute:


Column






Output parameters

Note
titleNote:

The chosen stage determines the event's output. Select the appropriate tab to view output parameters for that stage. 


Localtab Group


Localtab
activetrue
titlepre

This stage does not produce output.


Localtab
titlepost

This stage does not produce output.


Anchor
preconfigured
preconfigured
Preconfigured RPM::Versions hooks

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

RPMpre Script(s)post Script(s)

courier-imap

Include Page
LIB:_Courier Removed Warning
LIB:_Courier Removed Warning

/scripts/precourierup

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

courier-authlib

Include Page
LIB:_Courier Removed Warning
LIB:_Courier Removed Warning

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

Note
titleNote:

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


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

MySQL51-server

Note
titleNote:

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

Include Page
LIB:_MyDNSDeprecation
LIB:_MyDNSDeprecation

/scripts/prednsup /scripts/postnsdup


Note
titleNote:

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.