File: postrm

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 (26 lines) | stat: -rw-r--r-- 510 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
26
#!/bin/sh
# postrm script for adminer

set -e

apache_remove() 
{
	if [ -d /etc/apache2/conf.d ] && [ -L /etc/apache2/conf.d/adminer.conf ]; then
		rm -f /etc/apache2/conf.d/adminer.conf
	fi
}

if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
	apache_remove 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
fi

#DEBHELPER#

exit 0