From 4325a6f6e1f6abf5cbbc4597f2b7bb36ce237452 Mon Sep 17 00:00:00 2001 From: cajus Date: Sun, 17 Oct 2010 18:01:17 +0000 Subject: [PATCH] Added trigger git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20071 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/debian/gosa.postinst | 6 +++++- gosa-core/debian/gosa.triggers | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 gosa-core/debian/gosa.triggers diff --git a/gosa-core/debian/gosa.postinst b/gosa-core/debian/gosa.postinst index 6286d073a..c5be14243 100644 --- a/gosa-core/debian/gosa.postinst +++ b/gosa-core/debian/gosa.postinst @@ -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 index 000000000..920f3cb05 --- /dev/null +++ b/gosa-core/debian/gosa.triggers @@ -0,0 +1,2 @@ +interest update-gosa +interest /usr/share/gosa/plugins -- 2.30.2