Code

Added trigger
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sun, 17 Oct 2010 18:01:17 +0000 (18:01 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sun, 17 Oct 2010 18:01:17 +0000 (18:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20071 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/debian/gosa.postinst
gosa-core/debian/gosa.triggers [new file with mode: 0644]

index 6286d073a1f75131f7790c1a460b55a89f423c1f..c5be1424318a1c5d28c3ca5c84625770b6bbcb9d 100644 (file)
@@ -12,6 +12,11 @@ case "$1" in
   abort-upgrade|abort-remove|abort-deconfigure)
       ;;
 
+  triggered)
+      /usr/sbin/update-gosa
+      exit 0
+      ;;
+
   *)
       echo "postinst called with unknown argument \`$1'" >&2
       exit 1
@@ -104,4 +109,3 @@ chmod 770 -R /var/cache/gosa
 update-gosa
 
 exit 0
-
diff --git a/gosa-core/debian/gosa.triggers b/gosa-core/debian/gosa.triggers
new file mode 100644 (file)
index 0000000..920f3cb
--- /dev/null
@@ -0,0 +1,2 @@
+interest update-gosa
+interest /usr/share/gosa/plugins