aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-10-31 01:23:50 +0800
committerjylefort <jylefort@FreeBSD.org>2005-10-31 01:23:50 +0800
commit6cdc4aa3da195087765af4314362040a69221a48 (patch)
tree819e42d9e1d81ec30a1107af471e114fa4b59fc3
parentb69ba94e0a3e2a2cd3f314a4292185973464dbef (diff)
downloadfreebsd-ports-gnome-6cdc4aa3da195087765af4314362040a69221a48.tar.gz
freebsd-ports-gnome-6cdc4aa3da195087765af4314362040a69221a48.tar.zst
freebsd-ports-gnome-6cdc4aa3da195087765af4314362040a69221a48.zip
Do not overwrite configuration files during an update.
-rw-r--r--sysutils/fcron/pkg-install6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysutils/fcron/pkg-install b/sysutils/fcron/pkg-install
index 3a6569b54282..15508f19d7b5 100644
--- a/sysutils/fcron/pkg-install
+++ b/sysutils/fcron/pkg-install
@@ -31,7 +31,9 @@ elif [ "$2" = POST-INSTALL ]; then
/usr/bin/install -o fcron -g fcron -m 770 -d /var/spool/fcron
for f in fcron.allow fcron.conf fcron.deny; do
- /usr/bin/install -o root -g fcron -m 640 \
- $PKG_PREFIX/etc/$f.dist $PKG_PREFIX/etc/$f
+ if ! [ -e $PKG_PREFIX/etc/$f ]; then
+ /usr/bin/install -o root -g fcron -m 640 \
+ $PKG_PREFIX/etc/$f.dist $PKG_PREFIX/etc/$f
+ fi
done
fi