From 693d719f634dc667e152150e8625e458125c794c Mon Sep 17 00:00:00 2001 From: Dustin Navea Date: Sat, 27 Apr 2002 00:15:12 +0000 Subject: [PATCH] Always run ldconfig even if we don't change ld.so.conf. --- tools/wineinstall | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tools/wineinstall b/tools/wineinstall index 699eeea89a2..b9d86d882e5 100755 --- a/tools/wineinstall +++ b/tools/wineinstall @@ -292,13 +292,18 @@ then { # if the user doesn't have $libdir in their ld.so.conf add this # to our sucommand string - if [ -f /etc/ld.so.conf ] && ! grep -qs "$libdir" /etc/ld.so.conf - then { - echo - echo "$libdir doesn't exist in your /etc/ld.so.conf, it will be added" - echo "when we perform the install..." - sucommand="$sucommand;echo $libdir>>/etc/ld.so.conf;$ac_cv_path_LDCONFIG" - } + if [ -f /etc/ld.so.conf ] + then + if [ ! grep -qs "$libdir" /etc/ld.so.conf ] + then { + echo + echo "$libdir doesn't exist in your /etc/ld.so.conf, it will be added" + echo "when we perform the install..." + sucommand="$sucommand;echo $libdir>>/etc/ld.so.conf" + } + fi + # run ldconfig always just in case some updated files dont get linked + sucommand="$sucommand;$ac_cv_path_LDCONFIG" fi echo