[Libosinfo] [osinfo-db 05/11] install-script, opensuse: Only tweak pam-config in case of passwordless user

Fabiano Fidêncio fidencio at redhat.com
Tue Apr 18 21:29:25 UTC 2017


From: Fabiano Fidêncio <fabiano at fidencio.com>

Signed-off-by: Fabiano Fidêncio <fabiano at fidencio.com>
---
 data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in b/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
index c233470..c089931 100644
--- a/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
+++ b/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
@@ -242,8 +242,11 @@
                 <script>
                   <chrooted config:type="boolean">true</chrooted>
                   <source>
+
+if test -z '<xsl:value-of select="config/user-password"/>'; then
 pam-config -a --unix-nullok
 pam-config -a --nullok
+fi
 
 <xsl:choose>
   <xsl:when test="config/avatar-location != ''">
-- 
2.9.3




More information about the Libosinfo mailing list