Don't link SysV init script if $SERVICEDIR is given on Debian.

- Fixes issue with package build environment.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-06-08 15:56:56 -07:00
parent 0925636995
commit 6eb8416c2b
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -585,7 +585,7 @@ if [ -z "$DESTDIR" ]; then
fi
else
if [ $configure -eq 1 -a -n "$first_install" ]; then
if [ $HOST = debian ]; then
if [ $HOST = debian -a -z "$SERVICEDIR" ]; then
if [ -n "${DESTDIR}" ]; then
mkdir -p ${DESTDIR}/etc/rcS.d
fi