229c3f67eb
in ${PREFIX}/etc/rc.d and the control script in ${PREFIX}/bin have been refactored and now actually work very well. Using the 'www' user and group, creating them if they don't exist. I've used the same approach as www/apache13. STDOUT_LOG and STDERR_LOG are now fixed (no ?= anymore) since the package deinstall does not support a different location. This fixes the first half of PR 28624. See: http://www.freebsd.org/cgi/query-pr.cgi?pr=34931 Reported by: Kees Jan Koster <k.j.koster@kpn.com>
22 lines
421 B
Bash
22 lines
421 B
Bash
#!/bin/sh
|
|
#
|
|
# This script does the following.
|
|
#
|
|
# Checks if the 'www' user exists. If it does, then it displays
|
|
# a message.
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# Make sure we're called during the 'make deinstall' process
|
|
if [ "$2" != "POST-DEINSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# If the user exists, then display a message
|
|
if pw usershow "www" 2>/dev/null 1>&2; then
|
|
echo "To delete the www user permanently, use 'pw userdel www'"
|
|
fi
|
|
|
|
exit 0
|