[Pkg-ganeti-devel] [ganeti] 01/01: molly-guard: use a stub script instead of a symlink

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Thu Mar 20 11:03:42 UTC 2014


This is an automated email from the git hooks/post-receive script.

apoikos pushed a commit to branch master
in repository ganeti.

commit 1cfbf63bfd31c7bf9e174734c7fa48bf78be879c
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Thu Mar 20 12:37:32 2014 +0200

    molly-guard: use a stub script instead of a symlink
    
    The symlink from /etc/molly-guard/run.d certainly works, but is not
    treated as a conffile. To allow users to change or disable the hook, we
    use an intermediate stub script in /etc/molly-guard/run.d.
    
    Git-Dch: ignore
---
 debian/15-ganeti      | 11 +++++++++++
 debian/ganeti.install |  1 +
 debian/ganeti.links   |  1 -
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/15-ganeti b/debian/15-ganeti
new file mode 100755
index 0000000..ce0d816
--- /dev/null
+++ b/debian/15-ganeti
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# 15-ganeti -- detect if there are running ganeti(7) instances
+#
+# Copyright (c) 2014 Apollon Oikonomopoulos <apoikos at debian.org>
+#
+# Released under the terms of the GNU General Public License version 2 or later.
+
+HELPER="/usr/share/ganeti/default/molly-guard-helper"
+
+[ -x "$HELPER" ] && exec "$HELPER"
diff --git a/debian/ganeti.install b/debian/ganeti.install
index a194e62..ff79265 100644
--- a/debian/ganeti.install
+++ b/debian/ganeti.install
@@ -3,3 +3,4 @@ usr/sbin
 usr/lib/ganeti
 usr/share/man
 usr/share/ganeti/default
+debian/15-ganeti etc/molly-guard/run.d
diff --git a/debian/ganeti.links b/debian/ganeti.links
deleted file mode 100644
index 37083a2..0000000
--- a/debian/ganeti.links
+++ /dev/null
@@ -1 +0,0 @@
-usr/share/ganeti/default/molly-guard-helper	etc/molly-guard/run.d/15-ganeti

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ganeti/ganeti.git



More information about the Pkg-ganeti-devel mailing list