Browse Source

fix pamtool usage

master
parent
commit
117d287b73
  1. 6
      apache/apache.spec

6
apache/apache.spec

@ -143,7 +143,7 @@ Distribution: OpenPKG [BASE]
Group: Web
License: ASF
Version: %{V_apache}
Release: 20020913
Release: 20020916
# list of sources
Source0: http://www.apache.org/dist/httpd/apache_%{V_apache}.tar.gz
@ -842,7 +842,7 @@ AutoReqProv: no
%if "%{with_mod_auth_pam}" == "yes"
# add PAM configuration entry
if [ $1 -eq 1 ]; then
$RPM_INSTALL_PREFIX/sbin/pamtool -a -s -n "apache"
$RPM_INSTALL_PREFIX/sbin/pamtool --add --smart --name=apache
fi
%endif
@ -850,7 +850,7 @@ AutoReqProv: no
%if "%{with_mod_auth_pam}" == "yes"
# remove PAM configuration entry
if [ $1 -eq 0 ]; then
$RPM_INSTALL_PREFIX/sbin/pamtool -r -s -n "apache"
$RPM_INSTALL_PREFIX/sbin/pamtool --remove --smart --name=apache
fi
%endif

Loading…
Cancel
Save