]> pd.if.org Git - zpackage/commitdiff
look for ldconfig in rootdir
authorNathan Wagner <nw@hydaspes.if.org>
Sun, 30 Sep 2018 17:23:48 +0000 (17:23 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sun, 30 Sep 2018 17:23:48 +0000 (17:23 +0000)
zpm-install

index a654ab56b5d314fa29f2b4056b95efe6af360c23..a9a748df00bf6a28e12d51773dabc8232730d7a5 100755 (executable)
@@ -192,7 +192,13 @@ for pkgstr in "$@"; do
        fi
 
        if [ $(id -u) -eq 0 ]; then
-               /sbin/ldconfig
+               if [ -f $rootdir/sbin/ldconfig ]; then
+                       $rootdir/sbin/ldconfig -r ${rootdir:-/}
+               elif [ -f /sbin/ldconfig ]; then
+                       /sbin/ldconfig -r ${rootdir:-/}
+               else
+                       true
+               fi
        fi
 
        # TODO skip configure if not on a terminal, regardless of settings