]> git.proxmox.com Git - drbd-utils.git/commitdiff
fix drbd service permissions
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 9 Jun 2015 07:39:51 +0000 (09:39 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 9 Jun 2015 07:39:51 +0000 (09:39 +0200)
Else, systemd complains:

Configuration file /lib/systemd/system/drbd.service is marked executable. Please remove executable permission bits. Proceeding anyway.

debian/patches/fix-drbd-service-mode.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/fix-drbd-service-mode.patch b/debian/patches/fix-drbd-service-mode.patch
new file mode 100644 (file)
index 0000000..d690d79
--- /dev/null
@@ -0,0 +1,13 @@
+Index: new/scripts/Makefile.in
+===================================================================
+--- new.orig/scripts/Makefile.in
++++ new/scripts/Makefile.in
+@@ -65,7 +65,7 @@ endif
+ # yes, debian apparently allows installing both types from the same package
+ ifneq ($(initscripttype),sysv)                # "systemd" or "both"
+       install -d $(DESTDIR)$(systemdunitdir)
+-      install -m 755 drbd.service $(DESTDIR)$(systemdunitdir)/
++      install -m 644 drbd.service $(DESTDIR)$(systemdunitdir)/
+       install -d $(DESTDIR)/lib/drbd/
+       install -m 755 drbd $(DESTDIR)/lib/drbd/
+       install -d $(DESTDIR)$(tmpfilesdir)/
index 7293770018e35eb27aaa0444645ce3b530428f35..85f50a228ea2a03901ee7fef43dd2e9e319f793f 100644 (file)
@@ -1,2 +1,3 @@
 fix-drbd-path-in-systemd-service.patch
 enable-two-primaries.patch
+fix-drbd-service-mode.patch