Code

Added trigger test
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sun, 17 Oct 2010 09:44:22 +0000 (09:44 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sun, 17 Oct 2010 09:44:22 +0000 (09:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20065 594d385d-05f5-0310-b6e9-bd551577e9d8

48 files changed:
gosa-core/debian/gosa-plugin-addressbook.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-connectivity.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-dhcp-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-dhcp.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-dns-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-dns.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-fai-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-fai.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-gofax.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-gofon.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-goto.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-kolab-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-kolab.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-ldapmanager.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-log-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-log.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-mail.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-mit-krb5-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-mit-krb5.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-nagios-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-nagios.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-netatalk.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-opengroupware.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-openxchange-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-openxchange.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-opsi.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-phpgw-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-phpgw.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-phpscheduleit-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-phpscheduleit.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-pptp-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-pptp.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-pureftpd-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-pureftpd.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-rolemanagement.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-rsyslog.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-samba.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-scalix.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-squid.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-ssh-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-ssh.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-sudo-schema.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-sudo.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-systems.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-uw-imap.trigger [new file with mode: 0644]
gosa-core/debian/gosa-plugin-webdav.trigger [new file with mode: 0644]
gosa-core/debian/gosa.postinst
gosa-core/debian/gosa.triggers [new file with mode: 0644]

diff --git a/gosa-core/debian/gosa-plugin-addressbook.trigger b/gosa-core/debian/gosa-plugin-addressbook.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-connectivity.trigger b/gosa-core/debian/gosa-plugin-connectivity.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-dhcp-schema.trigger b/gosa-core/debian/gosa-plugin-dhcp-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-dhcp.trigger b/gosa-core/debian/gosa-plugin-dhcp.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-dns-schema.trigger b/gosa-core/debian/gosa-plugin-dns-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-dns.trigger b/gosa-core/debian/gosa-plugin-dns.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-fai-schema.trigger b/gosa-core/debian/gosa-plugin-fai-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-fai.trigger b/gosa-core/debian/gosa-plugin-fai.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-gofax.trigger b/gosa-core/debian/gosa-plugin-gofax.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-gofon.trigger b/gosa-core/debian/gosa-plugin-gofon.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-goto.trigger b/gosa-core/debian/gosa-plugin-goto.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-kolab-schema.trigger b/gosa-core/debian/gosa-plugin-kolab-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-kolab.trigger b/gosa-core/debian/gosa-plugin-kolab.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-ldapmanager.trigger b/gosa-core/debian/gosa-plugin-ldapmanager.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-log-schema.trigger b/gosa-core/debian/gosa-plugin-log-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-log.trigger b/gosa-core/debian/gosa-plugin-log.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-mail.trigger b/gosa-core/debian/gosa-plugin-mail.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-mit-krb5-schema.trigger b/gosa-core/debian/gosa-plugin-mit-krb5-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-mit-krb5.trigger b/gosa-core/debian/gosa-plugin-mit-krb5.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-nagios-schema.trigger b/gosa-core/debian/gosa-plugin-nagios-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-nagios.trigger b/gosa-core/debian/gosa-plugin-nagios.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-netatalk.trigger b/gosa-core/debian/gosa-plugin-netatalk.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-opengroupware.trigger b/gosa-core/debian/gosa-plugin-opengroupware.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-openxchange-schema.trigger b/gosa-core/debian/gosa-plugin-openxchange-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-openxchange.trigger b/gosa-core/debian/gosa-plugin-openxchange.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-opsi.trigger b/gosa-core/debian/gosa-plugin-opsi.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-phpgw-schema.trigger b/gosa-core/debian/gosa-plugin-phpgw-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-phpgw.trigger b/gosa-core/debian/gosa-plugin-phpgw.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-phpscheduleit-schema.trigger b/gosa-core/debian/gosa-plugin-phpscheduleit-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-phpscheduleit.trigger b/gosa-core/debian/gosa-plugin-phpscheduleit.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-pptp-schema.trigger b/gosa-core/debian/gosa-plugin-pptp-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-pptp.trigger b/gosa-core/debian/gosa-plugin-pptp.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-pureftpd-schema.trigger b/gosa-core/debian/gosa-plugin-pureftpd-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-pureftpd.trigger b/gosa-core/debian/gosa-plugin-pureftpd.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-rolemanagement.trigger b/gosa-core/debian/gosa-plugin-rolemanagement.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-rsyslog.trigger b/gosa-core/debian/gosa-plugin-rsyslog.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-samba.trigger b/gosa-core/debian/gosa-plugin-samba.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-scalix.trigger b/gosa-core/debian/gosa-plugin-scalix.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-squid.trigger b/gosa-core/debian/gosa-plugin-squid.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-ssh-schema.trigger b/gosa-core/debian/gosa-plugin-ssh-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-ssh.trigger b/gosa-core/debian/gosa-plugin-ssh.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-sudo-schema.trigger b/gosa-core/debian/gosa-plugin-sudo-schema.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-sudo.trigger b/gosa-core/debian/gosa-plugin-sudo.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-systems.trigger b/gosa-core/debian/gosa-plugin-systems.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-uw-imap.trigger b/gosa-core/debian/gosa-plugin-uw-imap.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
diff --git a/gosa-core/debian/gosa-plugin-webdav.trigger b/gosa-core/debian/gosa-plugin-webdav.trigger
new file mode 100644 (file)
index 0000000..04f7051
--- /dev/null
@@ -0,0 +1 @@
+activate update-gosa
index 6286d073a1f75131f7790c1a460b55a89f423c1f..1f9740c9a3ad0fe7d667de480020c6874981550e 100644 (file)
@@ -12,6 +12,20 @@ case "$1" in
   abort-upgrade|abort-remove|abort-deconfigure)
       ;;
 
+  triggered)
+      for triggername in $2; do
+          case "$triggername" in
+              "update-gosa")
+                /usr/sbin/update-gosa
+                ;;
+          *)
+              echo "unhandled/unknown trigger!"
+              exit 1
+              ;;
+          esac
+      done
+      ;;
+
   *)
       echo "postinst called with unknown argument \`$1'" >&2
       exit 1
diff --git a/gosa-core/debian/gosa.triggers b/gosa-core/debian/gosa.triggers
new file mode 100644 (file)
index 0000000..3ce851e
--- /dev/null
@@ -0,0 +1 @@
+interest update-gosa