Skip to content

Commit

Permalink
#1521 only remove the selinux port label if we are uninstalling
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@16073 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 14, 2017
1 parent 0c874f1 commit 860db41
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rpmbuild/xpra.spec
Original file line number Diff line number Diff line change
Expand Up @@ -695,9 +695,6 @@ fi
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

%preun common-server
%if 0%{?with_selinux}
semanage port -d -p tcp 14500
%endif
if [ $1 -eq 0 ] ; then
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
/bin/systemctl disable xpra.service > /dev/null 2>&1 || :
Expand All @@ -721,6 +718,7 @@ if [ ! -z "${ZONE}" ]; then
fi
%if 0%{?with_selinux}
if [ $1 -eq 0 ] ; then
semanage port -d -p tcp 14500
for mod in %{selinux_modules}
do
for selinuxvariant in %{selinux_variants}
Expand Down

0 comments on commit 860db41

Please sign in to comment.