From e1e07a149e5929ae90d15d63bd9fbe1f295bd2ab Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 20 Dec 2018 21:54:21 +0800 Subject: Rebuild databases after upgrade --- dfly-update | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'dfly-update') 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 "+---------------------------------------------------------+" -- cgit v1.2.2