]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
PAM: Delete old lib and symlinks
authorErik Kapfer <erik.kapfer@ipfire.org>
Sun, 18 Mar 2018 12:55:31 +0000 (13:55 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Mar 2018 13:44:04 +0000 (13:44 +0000)
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 <erik.kapfer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/120/update.sh

index 2f1bca02cbb023de75d0d3047707bd70b315bd25..02f2ad077710945aa353eff10d82b6b8c4dbcb4b 100644 (file)
@@ -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