Accepting request 361038 from home:wanghaisu:branches:network:ha-clustering:Factory
Check file exist before mv. OBS-URL: https://build.opensuse.org/request/show/361038 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/drbd-utils?expand=0&rev=18
This commit is contained in:
parent
43198f0aea
commit
37972bc1fd
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package drbd-utils
|
# spec file for package drbd-utils
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -109,7 +109,10 @@ rm -rf %{buildroot}%{_sysconfdir}/xen
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
mkdir -p %{buildroot}/usr/lib/udev/rules.d
|
mkdir -p %{buildroot}/usr/lib/udev/rules.d
|
||||||
|
if [ -f "%{buildroot}/lib/udev/rules.d/65-drbd.rules" ]
|
||||||
|
then
|
||||||
mv %{buildroot}/lib/udev/rules.d/65-drbd.rules* %{buildroot}/usr/lib/udev/rules.d/65-drbd.rules
|
mv %{buildroot}/lib/udev/rules.d/65-drbd.rules* %{buildroot}/usr/lib/udev/rules.d/65-drbd.rules
|
||||||
|
fi
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre drbd.service
|
%service_add_pre drbd.service
|
||||||
|
Loading…
Reference in New Issue
Block a user