Ignore errors from 'systemctl enable'

This commit is contained in:
Kalev Lember 2011-09-04 00:50:31 +03:00
parent 98d53e9579
commit fd30a60e01

View File

@ -2,7 +2,7 @@
Name: pcsc-lite
Version: 1.7.4
Release: 3%{?dist}
Release: 4%{?dist}
Summary: PC/SC Lite smart card framework and applications
Group: System Environment/Daemons
@ -104,7 +104,7 @@ rm $RPM_BUILD_ROOT%{_docdir}/pcsc-lite/README.DAEMON
%post
if [ $1 -eq 1 ] ; then
# Initial installation
/bin/systemctl enable pcscd.socket >/dev/null 2>&1
/bin/systemctl enable pcscd.socket >/dev/null 2>&1 || :
fi
%preun
@ -128,7 +128,7 @@ fi
%{_bindir}/systemd-sysv-convert --save pcscd >/dev/null 2>&1 ||:
# Enable pcscd socket activation
/bin/systemctl enable pcscd.socket >/dev/null 2>&1
/bin/systemctl enable pcscd.socket >/dev/null 2>&1 || :
# Run these because the SysV package being removed won't do them
/sbin/chkconfig --del pcscd >/dev/null 2>&1 || :
@ -170,6 +170,9 @@ fi
%changelog
* Sun Sep 04 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-4
- Ignore errors from 'systemctl enable' (#734852)
* Sat Aug 20 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-3
- Use /var/run/pcscd for ipc directory (#722449)