|
|
@@ -277,11 +277,12 @@ AutoReqProv: no
|
|
|
exit 0
|
|
|
|
|
|
%preun
|
|
|
- # before erase, stop service, remove PAM configuraten entry and remove log files
|
|
|
+ # before erase, stop service
|
|
|
[ $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
|
|
|
%if "%{with_pam}" == "yes"
|
|
|
+ # remove PAM configuration entry
|
|
|
$RPM_INSTALL_PREFIX/sbin/pamtool --remove --smart --name=openssh
|
|
|
%endif
|
|
|
exit 0
|