|
Lines 1-20
Link Here
|
| 1 |
#!/bin/sh |
|
|
| 2 |
# Script to install preload.conf |
| 3 |
|
| 4 |
PREFIX=${PKG_PREFIX-/usr/local} |
| 5 |
|
| 6 |
if [ "$2" != "POST-INSTALL" ] ; then |
| 7 |
exit 0 |
| 8 |
fi |
| 9 |
|
| 10 |
# If this is during staging, we can skip for now |
| 11 |
echo $PREFIX | grep -q '/stage/' |
| 12 |
if [ $? -eq 0 ] ; then |
| 13 |
exit 0 |
| 14 |
fi |
| 15 |
|
| 16 |
if [ ! -e "${PREFIX}/etc/pcdm.conf" ] ; then |
| 17 |
install -m 644 ${PREFIX}/etc/pcdm.conf.dist ${PREFIX}/etc/pcdm.conf |
| 18 |
fi |
| 19 |
|
| 20 |
exit 0 |