Browse Source

add pam entry management

master
parent
commit
6b5c8402e8
  1. 16
      pureftpd/pureftpd.spec

16
pureftpd/pureftpd.spec

@ -107,3 +107,19 @@ AutoReqProv: no
%clean
rm -rf $RPM_BUILD_ROOT
%post
%if "%{with_pam}" == "yes"
# add PAM configuration entry
if [ $1 -eq 1 ]; then
$RPM_INSTALL_PREFIX/sbin/pamtool -a -s -n "pureftpd"
fi
%endif
%preun
%if "%{with_pam}" == "yes"
# remove PAM configuration entry
if [ $1 -eq 0 ]; then
$RPM_INSTALL_PREFIX/sbin/pamtool -r -s -n "pureftpd"
fi
%endif

Loading…
Cancel
Save