File: postinst

package info (click to toggle)
adminer 3.3.3-1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 1,528 kB
  • sloc: php: 14,363; sh: 49; makefile: 36
file content (25 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

set -e

apache_install() 
{
	webserver=$1
	if [ -d /etc/$webserver/conf.d ] && [ ! -e /etc/$webserver/conf.d/adminer.conf ]; then
		ln -s ../../adminer/apache.conf /etc/$webserver/conf.d/adminer.conf
	fi
}

apache_install apache2

if [ -f /etc/init.d/apache2 ] ; then
    if [ -x /usr/sbin/invoke-rc.d ]; then
	invoke-rc.d apache2 force-reload >/dev/null 2>&1 || true
    else
	/etc/init.d/apache2 force-reload >/dev/null 2>&1 || true
    fi
fi

#DEBHELPER#

exit 0