mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 17:57:13 +08:00
17 lines
439 B
Plaintext
17 lines
439 B
Plaintext
post_install() {
|
|
if type -P systemd-tmpfiles &> /dev/null; then
|
|
systemd-tmpfiles --create apache.conf
|
|
fi
|
|
}
|
|
|
|
post_upgrade() {
|
|
if type -P systemd-tmpfiles &> /dev/null; then
|
|
systemd-tmpfiles --create apache.conf
|
|
fi
|
|
|
|
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/2.4/upgrading.html'
|
|
fi
|
|
}
|