diff options
Diffstat (limited to '2.2/scripts')
-rwxr-xr-x | 2.2/scripts/suexec2-config | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/2.2/scripts/suexec2-config b/2.2/scripts/suexec2-config index 5dfbc95..8a5caba 100755 --- a/2.2/scripts/suexec2-config +++ b/2.2/scripts/suexec2-config @@ -19,7 +19,8 @@ DEF_USERDIR=public_html DEF_UIDMIN=1000 DEF_UMASK=077 - +BUILDFILES=/usr/lib/apache2/build +BUILDDIR=/var/tmp/suexec-rebuild usage() { cat <<EOF_USAGE @@ -200,11 +201,11 @@ action_rebuild() { need_root # required for installing suexec - mkdir -p /var/tmp/suexec-conf || die "mkdir /var/tmp/suexec-conf failed" - cd /var/tmp/suexec-conf - cp /usr/lib/apache2/build/suexec.c . || + mkdir -p ${BUILDDIR} || die "mkdir ${BUILDDIR} failed" + cd ${BUILDDIR} + cp ${BUILDFILES}/suexec.c . || die "Unable to copy suexec.c - possibly missing?" - cp /usr/lib/apache2/build/Makefile.suexec Makefile || + cp ${BUILDFILES}/Makefile.suexec Makefile || die "Unable to copy Makefile - possibly missing?" cat > suexec.h <<EOF_SUEXEC_H |