Quiet systemctl if cups-browsed.service is not installed

This commit is contained in:
Orion Poplawski 2014-08-26 09:59:32 -06:00
parent c1a852fecb
commit 1e43ccc8ce

View File

@ -144,7 +144,7 @@ rm -f %{buildroot}%{_datadir}/polkit-1/actions/org.fedoraproject.FirewallD1.poli
# on upgrade allow ipp-client service in active home/internal/work # on upgrade allow ipp-client service in active home/internal/work
# if cups-browsed service is enabled to not break someones printing (RHBZ#1105639) # if cups-browsed service is enabled to not break someones printing (RHBZ#1105639)
systemctl -q is-enabled cups-browsed systemctl -q is-enabled cups-browsed &>/dev/null
if [[ "$?" -eq 0 && "$1" -eq 2 ]]; then if [[ "$?" -eq 0 && "$1" -eq 2 ]]; then
ZONES=( 'home' 'internal' 'work' ) ZONES=( 'home' 'internal' 'work' )
N_ZONES=${#ZONES[@]} N_ZONES=${#ZONES[@]}