summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stewart <vericgar@gentoo.org>2006-02-15 05:53:40 +0000
committerMichael Stewart <vericgar@gentoo.org>2006-02-15 05:53:40 +0000
commit53391c23eb4cab18174d0befa6199d93b2bf74c0 (patch)
treeeb7b983addfa9c31f874cc004b71f86b018f1550 /2.2/scripts
parentClean up in prep for apache 2.2 (diff)
downloadapache-53391c23eb4cab18174d0befa6199d93b2bf74c0.tar.gz
apache-53391c23eb4cab18174d0befa6199d93b2bf74c0.tar.bz2
apache-53391c23eb4cab18174d0befa6199d93b2bf74c0.zip
Changes for apache-2.2, see source and bug 114232 for details
Diffstat (limited to '2.2/scripts')
-rwxr-xr-x2.2/scripts/suexec2-config57
1 files changed, 57 insertions, 0 deletions
diff --git a/2.2/scripts/suexec2-config b/2.2/scripts/suexec2-config
new file mode 100755
index 0000000..4c4a774
--- /dev/null
+++ b/2.2/scripts/suexec2-config
@@ -0,0 +1,57 @@
+#!/bin/bash
+
+# This script doesn't do much, yet.
+# There is a much more functional prototype sitting on my harddrive
+# that needs a lot of work before I can really release it to the public.
+# Michael Stewart <vericgar@gentoo.org) Feb 05 2006
+
+# Sane defaults, just in case
+caller=apache
+userdir=public_html
+docroot=/var/www
+uidmin=1000
+gidmin=100
+logfile=/var/log/apache2/suexec_log
+safepath="/usr/local/bin:/usr/bin:/bin"
+sumask=077
+
+if [ "$1" == "--config" ]; then
+ if [ -n "$2" ] && [ -f "$2" ]; then
+ . $2
+ else
+ if [ -f /etc/apache2/suexec-conf ]; then
+ . /etc/apache2/suexec-conf
+ fi
+ fi
+
+ echo -n "--with-suexec-safepath=${safepath} "
+ echo -n "--with-suexec-logfile=${logfile} "
+ echo -n "--with-suexec-userdir=${userdir} "
+ echo -n "--with-suexec-caller=${caller} "
+ echo -n "--with-suexec-docroot=${docroot} "
+ echo -n "--with-suexec-uidmin=${uidmin} "
+ echo -n "--with-suexec-gidmin=${gidmin} "
+ echo -n "--with-suexec-umask=${sumask} "
+
+else
+ cat <<EOF_USAGE
+$0 - a configuration utility for suexec
+
+You can set suexec options in /etc/apache2/suexec-conf.
+Note: you need to re-emerge apache for changes to take effect.
+
+This script doesn't do much, yet.
+A much more useful implementation of this program is in the works.
+See Gentoo Bug 66397 for more details.
+-- Michael Stewart <vericgar@gentoo.org) Feb 05 2006
+
+
+Options:
+
+ --config [filename] Output ./configure options for apache
+
+
+EOF_USAGE
+fi
+
+