SOURCES: installzope3package (NEW) - registers/unregisters an add-...
jajcus
jajcus at pld-linux.org
Tue Aug 30 14:28:56 CEST 2005
Author: jajcus Date: Tue Aug 30 12:28:56 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- registers/unregisters an add-on package in a Zope 3 instace configuration
---- Files affected:
SOURCES:
installzope3package (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/installzope3package
diff -u /dev/null SOURCES/installzope3package:1.1
--- /dev/null Tue Aug 30 14:28:56 2005
+++ SOURCES/installzope3package Tue Aug 30 14:28:51 2005
@@ -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
================================================================
More information about the pld-cvs-commit
mailing list