]> git.pld-linux.org Git - packages/Zope.git/blob - Zope-mkzopeinstance
- reverting changes; reload not included in zope.init
[packages/Zope.git] / Zope-mkzopeinstance
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 install -d "/etc/zope/$name"
25 mv "${destdir}"/etc/* "/etc/zope/$name"
26
27 chmod a+x "${destdir}"/bin/*
28
29 install -d "/var/log/zope/$name"
30
31 chown root.zope "${destdir}" "/var/log/zope/$name"
32 chmod 770 "${destdir}" "/var/log/zope/$name"
33 chown -R zope.zope "${destdir}"/*
34 chmod a+X  "${destdir}"/*
This page took 0.070976 seconds and 3 git commands to generate.