Files
ports/core/apache/apache.install
2018-05-13 00:12:31 +08:00

21 lines
410 B
Plaintext

pre_install() {
getent group apache >/dev/null || groupadd -g 25 apache
getent passwd apache >/dev/null || useradd -c "Apache Server" -d /srv/www -g apache -s /bin/false -u 25 apache
}
post_install() {
msginfo
msginfo "Enable and start httpd service:"
msginfo " ln -sv /etc/sv/httpd /var/service"
msginfo
}
rm_sv() {
rm -f /etc/sv/$1/supervise
rm -f /var/service/$1
}
pre_remove() {
rm_sv httpd
}