diff --git a/drbd-utils.spec b/drbd-utils.spec index c6ecf9f..5c0101e 100644 --- a/drbd-utils.spec +++ b/drbd-utils.spec @@ -147,7 +147,8 @@ rm -rf %{buildroot}%{libdir}/drbd/crm-*fence-peer.sh # bsc#1204276 ln -sf %{libdir}/drbd %{buildroot}/lib/drbd %endif -%pretrans +%pre +%service_add_pre %{services} %if 0%{?suse_version} < 1550 if [ ! -L /lib/drbd ] && [ -d /lib/drbd ]; then rm -rf /lib/drbd.rpmmoved @@ -155,9 +156,6 @@ if [ ! -L /lib/drbd ] && [ -d /lib/drbd ]; then fi %endif -%pre -%service_add_pre %{services} - %post %tmpfiles_create %{_tmpfilesdir}/drbd.conf %service_add_post %{services}