blob: a694ddc79991324da71c57ce100e00830248e2d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|