aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README1
-rwxr-xr-xdfly-update10
2 files changed, 10 insertions, 1 deletions
diff --git a/README b/README
index d15f6d5..664cf1b 100644
--- a/README
+++ b/README
@@ -94,5 +94,4 @@ TODO
* Merge new users/groups
* Interactively merge updated /etc files
(borrow OpenBSD's sysmerge(8) or improve/simplify mergemaster(8))
-* Update databases such as user/password, login, locate, man page, etc.
* rcs(1) controlled /etc upgrade
diff --git a/dfly-update b/dfly-update
index 6da5c60..c5df23b 100755
--- a/dfly-update
+++ b/dfly-update
@@ -567,6 +567,16 @@ cleanup() {
postupgrade() {
[ $# -eq 0 ] || \
error ${EC_ARGS} "postupgrade: invalid arguments: $@"
+
+ echo "Rebuild capability database ..."
+ cap_mkdb /etc/login.conf
+ echo "Rebuild password database ..."
+ pwd_mkdb -p /etc/master.passwd
+ echo "Rebuild whatis database ..."
+ makewhatis
+ echo "Rebuild shared library cache ..."
+ ldconfig -R
+
echo "+=========================================================+"
echo "The following config files need manual merge:"
echo "+---------------------------------------------------------+"