root/liboggz/trunk/apache-install.sh

Revision 3675, 377 bytes (checked in by conrad, 4 months ago)

rename debian-postinst.sh to apache-install.sh

  • Property svn:executable set to *
Line 
1 #!/bin/sh
2
3 PATH="/bin:/usr/bin:/sbin:/usr/sbin"
4
5 if dpkg -l apache2 >/dev/null 2>&1; then
6   DAEMON="apache2"
7   cp apache/oggz-chop.conf /etc/apache2/conf.d/
8 elif dpkg -l apache >/dev/null 2>&1; then
9   DAEMON="apache"
10   cp apache/oggz-chop.conf /etc/apache/conf.d
11 else
12   echo 1>&2 "Error: Neither apache2 or apache are installed"
13   exit 1
14 fi
15
16 invoke-rc.d $DAEMON reload || true
Note: See TracBrowser for help on using the browser.