public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] PAM: Delete old lib and symlinks
@ 2018-03-18 12:55 Erik Kapfer
  2018-03-18 13:00 ` ummeegge
  0 siblings, 1 reply; 4+ messages in thread
From: Erik Kapfer @ 2018-03-18 12:55 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 917 bytes --]

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(a)ipfire.org>
---
 config/rootfiles/core/120/update.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/config/rootfiles/core/120/update.sh b/config/rootfiles/core/120/update.sh
index 2f1bca0..02f2ad0 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
-- 
2.7.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-18 15:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-18 12:55 [PATCH] PAM: Delete old lib and symlinks Erik Kapfer
2018-03-18 13:00 ` ummeegge
2018-03-18 13:43   ` Michael Tremer
2018-03-18 15:13     ` ummeegge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox