blob: 22633be6adf745f84bf7eb012c42811a1ed60e36 (
plain)
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
27
28
29
30
|
#! /bin/sh
set -e
phpini=/etc/php5/@sapi@/php.ini
case "$1" in
purge)
# remove the flag to remember the original state
if [ -e /etc/php5/@sapi@/.start ]; then
rm -f /etc/php5/@sapi@/.start
fi
for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist; do
rm -f $phpini$ext
done
rm -f $phpini
if which ucf >/dev/null; then
ucf --purge $phpini
fi
if which ucfr >/dev/null; then
ucfr --purge @package@ $phpini
fi
;;
esac
#EXTRA#
#DEBHELPER#
exit 0
|