mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
234f59aaa4
WWW: https://github.com/trueos/pcdm PR: 222155 Submitted by: q5sys <jt@ixsystems.com> Sponsored by: iXsystems, Inc.
21 lines
373 B
Bash
21 lines
373 B
Bash
#!/bin/sh
|
|
# Script to install preload.conf
|
|
|
|
PREFIX=${PKG_PREFIX-/usr/local}
|
|
|
|
if [ "$2" != "POST-INSTALL" ] ; then
|
|
exit 0
|
|
fi
|
|
|
|
# If this is during staging, we can skip for now
|
|
echo $PREFIX | grep -q '/stage/'
|
|
if [ $? -eq 0 ] ; then
|
|
exit 0
|
|
fi
|
|
|
|
if [ ! -e "${PREFIX}/etc/pcdm.conf" ] ; then
|
|
install -m 644 ${PREFIX}/etc/pcdm.conf.dist ${PREFIX}/etc/pcdm.conf
|
|
fi
|
|
|
|
exit 0
|