1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +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 \ Xstartup current.session \
display.current.session display.home.session \ display.current.session display.home.session \
dtlslocale dtprofile \ dtlslocale dtprofile \
home.session dtlogin.pam.conf \ home.session pam.d.dtlogin \
$(EXTRA_CPP_TARGETS) $(EXTRA_CPP_TARGETS)
AllTarget($(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),) CppSourceFile(home.session,home.session.src,$(LOCAL_CPP_DEFINES),)
#if defined(HasPamLibrary) && HasPamLibrary #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 #endif

View file

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