summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadoslaw Stachowiak <radek@gentoo.org>2004-10-07 21:03:08 +0000
committerRadoslaw Stachowiak <radek@gentoo.org>2004-10-07 21:03:08 +0000
commit111eec381a39e2d66434b33a3349bb0dc2f31386 (patch)
treedda980814120bf13f8c7f98e853354edc14b3a64 /app-admin/zope-config/files
parentver bump (Manifest recommit) (diff)
downloadgentoo-2-111eec381a39e2d66434b33a3349bb0dc2f31386.tar.gz
gentoo-2-111eec381a39e2d66434b33a3349bb0dc2f31386.tar.bz2
gentoo-2-111eec381a39e2d66434b33a3349bb0dc2f31386.zip
Now sets default instance if it wasnt set before (on instance creation).
Diffstat (limited to 'app-admin/zope-config/files')
-rw-r--r--app-admin/zope-config/files/0.5/zope-config-0.5.patch26
-rw-r--r--app-admin/zope-config/files/digest-zope-config-0.50
2 files changed, 26 insertions, 0 deletions
diff --git a/app-admin/zope-config/files/0.5/zope-config-0.5.patch b/app-admin/zope-config/files/0.5/zope-config-0.5.patch
new file mode 100644
index 000000000000..a694ddc79991
--- /dev/null
+++ b/app-admin/zope-config/files/0.5/zope-config-0.5.patch
@@ -0,0 +1,26 @@
+--- files/0.4/zope-config 2004-10-07 22:50:21.213319592 +0200
++++ /usr/sbin/zope-config 2004-10-07 22:45:46.249120504 +0200
+@@ -95,12 +95,17 @@
+ else
+ ${BIN}/mkzopeinstance.py --dir $2
+ fi
+- # create the log directory
+- mkdir ${EVENTLOGDIR}/${ZIRC_NAME}
+- # remove log directory in skeltarget
+- rm -r $2/log
+- # symlink log directory
+- ln -s ${EVENTLOGDIR}/${ZIRC_NAME} $2/log
++ # sets default instance if just created is first one
++ if [ $(zinst_default_get >/dev/null)$? -ne 0 ] ; then
++ echo $(basename ${ZINST_DIR}) >${ZI_DIR}/.default
++ chown zope:root ${ZI_DIR}/.default
++ fi
++ # create the log directory
++ mkdir ${EVENTLOGDIR}/${ZIRC_NAME}
++ # remove log directory in skeltarget
++ rm -r $2/log
++ # symlink log directory
++ ln -s ${EVENTLOGDIR}/${ZIRC_NAME} $2/log
+ RESULT=$?
+ else
+ if [ $NEWZOPE = 1 ] ; then
diff --git a/app-admin/zope-config/files/digest-zope-config-0.5 b/app-admin/zope-config/files/digest-zope-config-0.5
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/app-admin/zope-config/files/digest-zope-config-0.5