]>
Commit | Line | Data |
---|---|---|
81f37ce6 JK |
1 | #!/bin/sh |
2 | ||
3 | if [ -z "$1" ] ; then | |
4 | echo "Usage:" | |
5 | echo " $0 name [name:password]" | |
6 | exit 1 | |
7 | fi | |
8 | ||
9 | name="$1" | |
10 | destdir="/var/lib/zope/$name" | |
11 | ||
12 | if [ -n "$2" ] ; then | |
13 | namepass="-u $2" | |
14 | else | |
15 | namepass="" | |
16 | fi | |
17 | ||
18 | umask 002 | |
19 | python /usr/lib/zope/mkzopeinstance.py \ | |
20 | -s /etc/zope/skel \ | |
21 | -d "$destdir" \ | |
22 | $namepass || exit $? | |
23 | ||
24 | mv "${destdir}"/etc/* "/etc/zope/$name" | |
25 | ||
26 | chown root.zope ${destdir} | |
27 | chmod 770 ${destdir} | |
28 | chown -R zope.zope ${destdir}/* | |
29 | chmod a+X ${destdir}/* |