post_install() { systemd-tmpfiles --create apache.conf } post_upgrade() { systemd-tmpfiles --create apache.conf if [[ $2 == 2\.2\.* ]]; then # it is a major upgrade, show a useful link to upgrade instructions echo ' Check Apache upgrade instructions: https://httpd.apache.org/docs/trunk/upgrading.html' fi }