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 <erik.kapfer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Erik Kapfer
2018-03-18 13:55:31 +01:00
committed by Michael Tremer
parent cdc1a0e901
commit e779b6bc7a

View 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