blob: 0c134b2a4b37e057dea0906c01105b799d80a34d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
set -e
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
deb-systemd-invoke stop 'sync-httpd.service' >/dev/null || true
fi
if [ -f /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi
. /usr/share/dbconfig-common/dpkg/prerm
if [ -f /usr/share/dbconfig-common/dpkg/prerm.pgsql ]; then
. /usr/share/dbconfig-common/dpkg/prerm.pgsql
dbc_go sync-httpd "$@"
fi
db_stop
exit 0
|