File: apache-install.sh

package info (click to toggle)
liboggz 1.1.1-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,352 kB
  • sloc: ansic: 14,332; sh: 10,385; makefile: 469
file content (16 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

PATH="/bin:/usr/bin:/sbin:/usr/sbin"

if dpkg -l apache2 >/dev/null 2>&1; then
  DAEMON="apache2"
  cp apache/oggz-chop.conf /etc/apache2/conf.d/
elif dpkg -l apache >/dev/null 2>&1; then
  DAEMON="apache"
  cp apache/oggz-chop.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