[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#4698: New postinst script for dwww



Package: dwww
Version: 1.0-1

Here is a fixed version of the postinst script so that it works with the latest
apache:
#!/bin/bash
#
# postinst for dwww
# "@(#)dwww:$Id$"
#

dolinks() {
        rm -f "$1/dwww"
        ln -s /var/lib/dwww "$1/dwww" || exit 1

        rm -f "$2/dwww"
        ln -s /usr/lib/dwww/dwww.cgi "$2/dwww" || exit 1
}

foundhttpd=no

if test -x /usr/sbin/apache
then
        echo "Linking dwww to Apache httpd."
        dolinks /var/web/webspace /usr/lib/httpd/cgi-bin
        foundhttpd=yes
fi

if test -x /usr/sbin/cern-httpd
then
        echo "Linking dwww to Cern httpd."
        dolinks /home/httpd-data /usr/lib/cern-httpd/cgi-bin
        foundhttpd=yes
fi

if test $foundhttpd != yes
then
        echo "Did not find any HTTP server installed."
        echo "There is something rotten in dwwwmark."
        exit 1
fi

if test ! -f /var/lib/dwww/dwww.html
then
        echo -n "Building dwww pages; this will take a while..."
        touch /var/spool/dwww/.cache_db
        /etc/cron.daily/dwww
        echo " done."
fi

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: