]> git.pld-linux.org Git - packages/Zope.git/commitdiff
- Zope 2.7 utilities for PLD
authorJacek Konieczny <jajcus@pld-linux.org>
Sat, 15 Nov 2003 00:17:44 +0000 (00:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Zope-mkzeoinstance -> 1.1
    Zope-mkzopeinstance -> 1.1
    Zope-runzope -> 1.1
    Zope-zopectl -> 1.1

Zope-mkzeoinstance [new file with mode: 0644]
Zope-mkzopeinstance [new file with mode: 0644]
Zope-runzope [new file with mode: 0644]
Zope-zopectl [new file with mode: 0644]

diff --git a/Zope-mkzeoinstance b/Zope-mkzeoinstance
new file mode 100644 (file)
index 0000000..835487d
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/python
+
+import sys
+sys.path.insert(0,"/usr/lib/zope")
+from ZEO.mkzeoinst import ZEOInstanceBuilder
+ZEOInstanceBuilder().run()
diff --git a/Zope-mkzopeinstance b/Zope-mkzopeinstance
new file mode 100644 (file)
index 0000000..d24d122
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+if [ -z "$1" ] ; then
+       echo "Usage:"
+       echo "  $0 name [name:password]"
+       exit 1
+fi
+
+name="$1"
+destdir="/var/lib/zope/$name"
+
+if [ -n "$2" ] ; then
+       namepass="-u $2"
+else
+       namepass=""
+fi
+
+umask 002
+python /usr/lib/zope/mkzopeinstance.py \
+       -s /etc/zope/skel \
+       -d "$destdir" \
+       $namepass || exit $?
+
+mv "${destdir}"/etc/* "/etc/zope/$name"
+
+chown root.zope ${destdir}
+chmod 770 ${destdir}
+chown -R zope.zope ${destdir}/*
+chmod a+X  ${destdir}/*
diff --git a/Zope-runzope b/Zope-runzope
new file mode 100644 (file)
index 0000000..a136d6e
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ -n "$1" ] ; then
+       instance="$1"
+       shift
+else
+       instance="main"
+fi
+
+PYTHONPATH="/usr/lib/zope"; export PYTHONPATH
+exec /usr/bin/python "/usr/lib/zope/Zope/Startup/run.py" \
+       -C "/etc/zope/$instance/zope.conf" "$@"
diff --git a/Zope-zopectl b/Zope-zopectl
new file mode 100644 (file)
index 0000000..e5375c1
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -n "$1" ] ; then
+       instance="$1"
+else
+       instance="main"
+fi
+
+PYTHONPATH="/usr/lib/zope"; export PYTHONPATH
+exec /usr/bin/python "/usr/lib/zope/Zope/Startup/zopectl.py" \
+       -C "/etc/zope/$instance/zope.conf" "$@"
This page took 0.091482 seconds and 4 git commands to generate.