|
|
@@ -263,8 +263,8 @@ AutoReqProv: no
|
|
|
-N '' -C `hostname` 1>&2
|
|
|
fi
|
|
|
|
|
|
- # add PAM configuration entry
|
|
|
%if "%{with_pam}" == "yes"
|
|
|
+ # add PAM configuration entry
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
$RPM_INSTALL_PREFIX/sbin/pamtool --add --smart --name=openssh
|
|
|
fi
|
|
|
@@ -277,7 +277,7 @@ AutoReqProv: no
|
|
|
exit 0
|
|
|
|
|
|
%preun
|
|
|
- # before erase, stop service
|
|
|
+ # before erase, stop service and remove log files
|
|
|
[ $1 -eq 0 ] || exit 0
|
|
|
%{l_rc} openssh stop 2>/dev/null
|
|
|
rm -f $RPM_INSTALL_PREFIX/var/openssh/openssh.log* >/dev/null 2>&1 || true
|