- registers/unregisters an add-on package in a Zope 3 instace configuration
authorJacek Konieczny <jajcus@pld-linux.org>
Tue, 30 Aug 2005 12:28:51 +0000 (12:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    installzope3package -> 1.1

installzope3package [new file with mode: 0644]

diff --git a/installzope3package b/installzope3package
new file mode 100644 (file)
index 0000000..adb8149
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+pkg_dir="$1"
+pkg_name="$2"
+
+if [ "${pkg_dir}" != "-d" -a ! -d "${pkg_dir}" -o -z "${pkg_name}" ] ; then
+       echo "Usage:" >&2
+       echo "   $0 <package_directory> <package_name>"
+       echo "   $0 [-d] <package_name>"
+       exit 1
+fi
+
+AUTO_INSTALL_PRODUCTS=main
+[ -f /etc/sysconfig/zope3 ] && . /etc/sysconfig/zope3
+
+if [ "${pkg_dir}" != "-d" ] ; then
+       for instance in $AUTO_INSTALL_PRODUCTS ; do
+               ln -s "/etc/zope3/zopeskel/package-includes/${pkg_name}"-{meta,configure}.zcml "/etc/zope3/${instance}/package-includes"
+       done
+else
+       for instance in $AUTO_INSTALL_PRODUCTS ; do
+               rm -f "/etc/zope3/${instance}/package-includes/${pkg_name}"-{meta,configure}.zcml 2>/dev/null
+       done
+fi
+
+exit 0
This page took 0.133787 seconds and 4 git commands to generate.