Merge pull request #1442 from yifanjiang/devel

mkpamrules: Support openSUSE's usage of /usr/etc/pam.d to contain the pam configuration files.
This commit is contained in:
metalefty 2019-11-13 13:30:31 +09:00 committed by GitHub
commit 2b614d275e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ outfile="$3"
service="xrdp-sesman"
pamdir="/etc/pam.d"
pamdir_suse="/usr/etc/pam.d"
guess_rules ()
{
@ -16,6 +17,11 @@ guess_rules ()
return
fi
if test -s "$pamdir_suse/common-account"; then
rules="suse"
return
fi
if test -s "$pamdir/common-account"; then
if grep "^@include" "$pamdir/passwd" >/dev/null 2>&1; then
rules="debian"