aboutsummaryrefslogtreecommitdiffstats
path: root/dfly-update
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-12-20 21:54:21 +0800
committerAaron LI <aly@aaronly.me>2018-12-20 21:54:48 +0800
commite1e07a149e5929ae90d15d63bd9fbe1f295bd2ab (patch)
tree49c8d1997d3a80ad659f4c9c34e11c5c1fe3d120 /dfly-update
parent46010d2de8361cafca426068e8ee3fb95222fea5 (diff)
downloaddfly-update-e1e07a149e5929ae90d15d63bd9fbe1f295bd2ab.tar.bz2
Rebuild databases after upgrade
Diffstat (limited to 'dfly-update')
-rwxr-xr-xdfly-update10
1 files changed, 10 insertions, 0 deletions
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 "+---------------------------------------------------------+"