!61 [sync] PR-59: Fix service error message due to selinux policy mismatch

From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2024-01-11 07:55:13 +00:00 committed by Gitee
commit 8215cb3598
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -22,7 +22,7 @@
Name: proftpd
Version: 1.3.8b
Release: 2
Release: 3
Summary: Flexible, stable and highly-configurable FTP server
License: GPLv2+
URL: http://www.proftpd.org/
@ -110,6 +110,8 @@ Requires(preun): chkconfig, initscripts
Requires(postun): initscripts
%endif
Requires: coreutils
Provides: ftpserver
%description
@ -360,6 +362,10 @@ fi
%endif
%post
if [ ! -f /var/run/proftpd/proftpd.delay ]; then
touch /var/run/proftpd/proftpd.delay
fi
chcon -t user_home_t /var/run/proftpd/proftpd.delay
%if %{use_systemd}
systemctl daemon-reload &>/dev/null || :
%endif
@ -383,6 +389,7 @@ fi
%preun
if [ $1 -eq 0 ]; then
# Package removal, not upgrade
rm -rf /var/run/proftpd/proftpd.delay
%if %{use_systemd}
systemctl --no-reload disable proftpd.service &>/dev/null || :
systemctl stop proftpd.service &>/dev/null || :
@ -535,6 +542,9 @@ fi
%{_mandir}/man1/ftpwho.1*
%changelog
* Fri Jan 05 2024 Ge Wang <wang__ge@126.com> - 1.3.8b-3
- Fix service error message due to selinux policy mismatch
* Fri Dec 29 2023 wangkai <13474090681@163.com> - 1.3.8b-2
- Adjust patch number