Skip to content

Add autoreconfigure %post script

Ben Morrice requested to merge autoreconfigure into master

Providing this is merged, this will be seen on a package upgrade:

$ sudo rpm -Uvh /home/morrice/puppet-postfix/build/RPMS/noarch/puppet-postfix-1.2-1.el9.noarch.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:puppet-postfix-1.2-1.el9         ################################# [ 50%]
locmap autoreconfigure enabled, running: locmap --configure postfix
[INFO    ] Please wait while your system is being configured... 
[INFO    ] The run succeeded, and some resources were changed.
Cleaning up / removing...
   2:puppet-postfix-1.1-8.el9.cern    ################################# [100%]
$

or ...

$ sudo rpm -Uvh /home/morrice/puppet-postfix/build/RPMS/noarch/puppet-postfix-1.2-1.el9.noarch.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:puppet-postfix-1.2-1.el9         ################################# [ 50%]
locmap autoreconfigure enabled, however the postfix module is not enabled
Skipping (re)configuration of postfix
Cleaning up / removing...
   2:puppet-postfix-1.1-8.el9.cern    ################################# [100%]
$

This commit will need to be applied to all locmap puppet modules

Merge request reports