Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (13 sloc) 377 Bytes
#!/bin/sh
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
if dpkg -l apache2 >/dev/null 2>&1; then
DAEMON="apache2"
cp apache/fastphoto.conf /etc/apache2/conf.d/
elif dpkg -l apache >/dev/null 2>&1; then
DAEMON="apache"
cp apache/fastphoto.conf /etc/apache/conf.d
else
echo 1>&2 "Error: Neither apache2 or apache are installed"
exit 1
fi
invoke-rc.d $DAEMON reload || true