Files
ports/core/apache/apache.install
2018-05-26 23:33:25 +08:00

13 lines
316 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
}