From: Erik Kapfer Date: Sun, 18 Mar 2018 12:55:31 +0000 (+0100) Subject: PAM: Delete old lib and symlinks X-Git-Tag: v2.19-core120~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e779b6bc7aa470289bde0bf99aa7051dffc4384b;p=people%2Fstevee%2Fipfire-2.x.git PAM: Delete old lib and symlinks Core 119 update delivers an updated PAM whereby the libdir has been changed from /lib to /usr/lib but the old libraries and symlinks are still presant. Since the system searches /lib before /usr/lib , the old libs and symlinks are used which ends up in an `LIBPAM_EXTENSION_1.1' not found. Signed-off-by: Erik Kapfer Signed-off-by: Michael Tremer --- diff --git a/config/rootfiles/core/120/update.sh b/config/rootfiles/core/120/update.sh index 2f1bca02cb..02f2ad0777 100644 --- a/config/rootfiles/core/120/update.sh +++ b/config/rootfiles/core/120/update.sh @@ -34,6 +34,11 @@ done # Remove forgotten PHP file rm -f /etc/httpd/conf/conf.d/php5.conf +# Delete old PAM libs and symlinks if presant +if ls /lib | grep -q 'libpam.*'; then + rm -f /lib/libpam* +fi + # Stop services # Extract files