Skip to content

Commit

Permalink
Avoid regenerating ld.so.cache since no change of binaries happened.
Browse files Browse the repository at this point in the history
  • Loading branch information
adelton committed Dec 4, 2015
1 parent fa11dde commit 9a1f69e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ipa-server-configure-first
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function upgrade_server () {
for i in 389-ds-base pki-server ; do
rpm -q --scripts $i | perl -lne '/^\S+ scriptlet/ and $x = 0; print if $x; if (/^postinstall scriptlet \(using (\S+)\)/) { $x = 1; print "#!$1"; if ($1 eq "/bin/sh") { print "set -x" } }' > /tmp/$i.script
if [ -s "/tmp/$i.script" ] ; then
sed -i '\|/sbin/ldconfig|d' /tmp/$i.script
chmod a+x /tmp/$i.script
/tmp/$i.script 2
fi
Expand Down

0 comments on commit 9a1f69e

Please sign in to comment.