summaryrefslogtreecommitdiffstats
path: root/source/ap/man/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/man/doinst.sh')
-rw-r--r--source/ap/man/doinst.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/ap/man/doinst.sh b/source/ap/man/doinst.sh
index 22fa61d14..5f73b9859 100644
--- a/source/ap/man/doinst.sh
+++ b/source/ap/man/doinst.sh
@@ -10,5 +10,10 @@ config() {
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
-config usr/lib/man.conf.new
+# Move old config file if there's nothing in the way:
+if [ -r usr/lib/man.conf -a ! -r etc/man.conf ]; then
+ mv usr/lib/man.conf etc/man.conf
+fi
+# Install new config file if none exists:
+config etc/man.conf.new