From dc3b748cbcfa8242f8a72eb0d9ceb35a20643f43 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Sun, 30 Sep 2018 17:23:48 +0000 Subject: [PATCH] look for ldconfig in rootdir --- zpm-install | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zpm-install b/zpm-install index a654ab5..a9a748d 100755 --- a/zpm-install +++ b/zpm-install @@ -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 -- 2.40.0