Update pamdir_suse to accommodate with TW pam.d move (#2413)

On newer builds of openSUSE tumbleweed the path of pam.d has moved from
/usr/etc/pam.d to /usr/lib/pam.d, which prevents install script to
correctly guess pam rules. Updating path in mkpamrules solves the
problem.

(cherry picked from commit 4ff968bc98)
This commit is contained in:
Mosakuji Hokuto 2022-11-08 18:05:55 +08:00 committed by Koichiro IWAO
parent da521b27f9
commit 70e14f760e

View File

@ -8,7 +8,11 @@ outfile="$3"
service="xrdp-sesman"
pamdir="/etc/pam.d"
pamdir_suse="/usr/etc/pam.d"
pamdir_suse="/usr/lib/pam.d"
if [ ! -d $pamdir_suse ]; then
# Older SUSE distros uses /usr/etc/pam.d
pamdir_suse="/usr/etc/pam.d"
fi
# Modules needed by xrdp-sesman.unix, if we get to that
unix_modules_needed="pam_unix.so pam_env.so pam_nologin.so"