Skip to content

Commit

Permalink
silence firewall-cmd messages during rpm post (un)install scripts, we…
Browse files Browse the repository at this point in the history
… just rely on the exit code

git-svn-id: https://xpra.org/svn/Xpra/trunk@14602 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 25, 2016
1 parent e86fba0 commit 6630359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpmbuild/xpra.spec
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ fi
ZONE=`firewall-offline-cmd --get-default-zone 2> /dev/null`
if [ ! -z "${ZONE}" ]; then
set +e
firewall-cmd --zone=${ZONE} --add-port=14500/tcp --permanent 2> /dev/null
firewall-cmd --zone=${ZONE} --add-port=14500/tcp --permanent >> /dev/null 2>&1
if [ $? == "0" ]; then
firewall-cmd --reload | grep -v "^success"
else
Expand Down Expand Up @@ -512,7 +512,7 @@ fi
ZONE=`firewall-offline-cmd --get-default-zone 2> /dev/null`
if [ ! -z "${ZONE}" ]; then
set +e
firewall-cmd --zone=${ZONE} --remove-port=14500/tcp --permanent 2> /dev/null
firewall-cmd --zone=${ZONE} --remove-port=14500/tcp --permanent >> /dev/null 2>&1
if [ $? == "0" ]; then
firewall-cmd --reload | grep -v "^success"
else
Expand Down

0 comments on commit 6630359

Please sign in to comment.