1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 11:42:21 +00:00

dtlogin: rename PAM config file.

This commit is contained in:
Liang Chang 2021-01-31 04:31:27 +08:00 committed by Jon Trulson
parent 7cd6b8b714
commit 62bad7d8d2
3 changed files with 11 additions and 6 deletions

View file

@ -56,7 +56,7 @@ CPP_TARGETS = \
Xstartup current.session \
display.current.session display.home.session \
dtlslocale dtprofile \
home.session dtlogin.pam.conf \
home.session pam.d.dtlogin \
$(EXTRA_CPP_TARGETS)
AllTarget($(CPP_TARGETS))
@ -92,5 +92,5 @@ CppSourceFile(dtprofile,dtprofile.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(home.session,home.session.src,$(LOCAL_CPP_DEFINES),)
#if defined(HasPamLibrary) && HasPamLibrary
CppSourceFile(dtlogin.pam.conf,dtlogin.pam.conf.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(pam.d.dtlogin,pam.d.dtlogin.src,$(LOCAL_CPP_DEFINES),)
#endif

View file

@ -88,10 +88,15 @@ fi
#define PAM_D /etc/pam.d
#endif
if [ ! -f PAM_D/dtlogin ]; then
if [ -f CDE_INSTALLATION_TOP/config/dtlogin.pam.conf ]; then
/bin/cp CDE_INSTALLATION_TOP/config/dtlogin.pam.conf PAM_D/dtlogin
/bin/chmod 644 PAM_D/dtlogin
for i in CDE_INSTALLATION_TOP/config/pam.d.*
do
conf=PAM_D/${i##*.}
if [ ! -f $conf ]; then
if [ -f $i ]; then
/bin/cp $i $conf
/bin/chmod 644 $conf
fi
fi
done
#endif