]> git.tuebingen.mpg.de Git - dss.git/commitdiff
Make all hooks default to /bin/true.
authorAndre Noll <maan@systemlinux.org>
Mon, 5 Apr 2010 19:58:30 +0000 (21:58 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 16 Apr 2010 14:07:50 +0000 (16:07 +0200)
This way, we can always execute the hook which should simplify
the code a bit.

dss.ggo

diff --git a/dss.ggo b/dss.ggo
index 09e345d8db8f270de4182cda8d6033b236407724..7934db3faa02a40f7943713202c271df4f98c506 100644 (file)
--- a/dss.ggo
+++ b/dss.ggo
@@ -268,6 +268,7 @@ option "pre-create-hook" r
 #~~~~~~~~~~~~~~~~~~~~~~~~~~
 "Executed before snapshot creation"
 string typestr="command"
+default = "/bin/true"
 optional
 details="
        Execute this command before trying to create a new snapshot.
@@ -286,6 +287,7 @@ option "post-create-hook" o
 #~~~~~~~~~~~~~~~~~~~~~~~~~~
 "Executed after snapshot creation"
 string typestr="command"
+default = "/bin/true"
 optional
 details="
        Execute this after a snapshot has successfully been
@@ -302,6 +304,7 @@ option "pre-remove-hook" -
 #~~~~~~~~~~~~~~~~~~~~~~~~~~
 "Executed before snapshot removal"
 string typestr="command"
+default = "/bin/true"
 optional
 details="
        Execute this command before removing a snapshot. The full
@@ -323,6 +326,7 @@ option "post-remove-hook" -
 #~~~~~~~~~~~~~~~~~~~~~~~~~~
 "Executed after snapshot removal"
 string typestr="command"
+default = "/bin/true"
 optional
 details="
        Execute this after a snapshot has successfully been removed. As
@@ -335,6 +339,7 @@ option "exit-hook" e
 #~~~~~~~~~~~~~~~~~~~
 "Executed if run command exits"
 string typestr="command"
+default = "/bin/true"
 optional
 details="
        This hook is only used if the --run command was given which