2014-02-28 06:21:16 +08:00
|
|
|
post_install() {
|
2014-05-13 03:40:43 +08:00
|
|
|
if type -P systemd-tmpfiles &> /dev/null; then
|
|
|
|
systemd-tmpfiles --create apache.conf
|
|
|
|
fi
|
2014-02-28 06:21:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
2014-05-13 03:40:43 +08:00
|
|
|
if type -P systemd-tmpfiles &> /dev/null; then
|
|
|
|
systemd-tmpfiles --create apache.conf
|
|
|
|
fi
|
2014-02-28 06:21:16 +08:00
|
|
|
|
|
|
|
if [[ $2 == 2\.2\.* ]]; then
|
|
|
|
# it is a major upgrade, show a useful link to upgrade instructions
|
2014-05-13 03:40:43 +08:00
|
|
|
echo ' Check Apache upgrade instructions: https://httpd.apache.org/docs/2.4/upgrading.html'
|
2014-02-28 06:21:16 +08:00
|
|
|
fi
|
2012-09-11 05:30:16 +08:00
|
|
|
}
|