From: Nathan Cutler Date: Mon, 27 Jun 2016 19:16:54 +0000 (+0200) Subject: ceph.spec.in: systemctl preset on install only X-Git-Tag: ses5-milestone5~556^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0efbb5ae8d239af5c7c6e4f9b4374dfb1aa59c51;p=ceph.git ceph.spec.in: systemctl preset on install only Loading presets is only necessary on install, not on update. Signed-off-by: Nathan Cutler --- diff --git a/ceph.spec.in b/ceph.spec.in index 7cfff88c39a..1972b4213ea 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -797,7 +797,7 @@ rm -rf %{buildroot} /sbin/ldconfig %if 0%{?suse_version} %fillup_only -if [ $1 -ge 1 ] ; then +if [ $1 -eq 1 ] ; then /usr/bin/systemctl preset ceph.target >/dev/null 2>&1 || : fi %endif @@ -924,7 +924,7 @@ fi %post mds %if 0%{?suse_version} -if [ $1 -ge 1 ] ; then +if [ $1 -eq 1 ] ; then /usr/bin/systemctl preset ceph-mds@\*.service ceph-mds.target >/dev/null 2>&1 || : fi %endif @@ -977,7 +977,7 @@ fi %post mon %if 0%{?suse_version} -if [ $1 -ge 1 ] ; then +if [ $1 -eq 1 ] ; then /usr/bin/systemctl preset ceph-create-keys@\*.service ceph-mon@\*.service ceph-mon.target >/dev/null 2>&1 || : fi %endif @@ -1040,7 +1040,7 @@ fi %post -n rbd-mirror %if 0%{?suse_version} -if [ $1 -ge 1 ] ; then +if [ $1 -eq 1 ] ; then /usr/bin/systemctl preset ceph-rbd-mirror@\*.service ceph-rbd-mirror.target >/dev/null 2>&1 || : fi %endif @@ -1102,7 +1102,7 @@ fi %post radosgw %if 0%{?suse_version} -if [ $1 -ge 1 ] ; then +if [ $1 -eq 1 ] ; then /usr/bin/systemctl preset ceph-radosgw@\*.service ceph-radosgw.target >/dev/null 2>&1 || : fi %endif @@ -1165,7 +1165,7 @@ fi %post osd %if 0%{?suse_version} -if [ $1 -ge 1 ] ; then +if [ $1 -eq 1 ] ; then /usr/bin/systemctl preset ceph-disk@\*.service ceph-osd@\*.service ceph-osd.target >/dev/null 2>&1 || : fi %endif