blob: 1acebd0d737251722b647f819724052fe26388e0 (
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
31
32
33
34
|
post_install() {
if [ ! -d /etc/firefox-hardening/prefs ]; then
mkdir -p /etc/firefox-hardening/prefs
fi
if [ ! -f /etc/firefox-hardening/ffh.conf ]; then
install -m644 -D "/usr/lib/firefox-hardening/ffh.conf.example" "/etc/firefox-hardening/ffh.conf"
fi
/usr/lib/firefox-hardening/beatthedeviloutofit.sh
}
post_upgrade() {
if [ ! -d /etc/firefox-hardening/prefs ] || [ ! -f /etc/firefox-hardening/ffh.conf ]; then
post_install
else
install -m644 -D "/usr/lib/firefox-hardening/ffh.conf.example" "/etc/firefox-hardening/ffh.conf.package"
/usr/lib/firefox-hardening/beatthedeviloutofit.sh
fi
}
post_remove() {
if [ -d /etc/firefox-hardening ]; then
rm -r /etc/firefox-hardening
fi
if [ -f /usr/lib/firefox/custom.cfg ]; then
rm /usr/lib/firefox/custom.cfg
fi
if [ -L /usr/lib/firefox/defaults/pref/autoconfig.js ]; then
rm /usr/lib/firefox/defaults/pref/autoconfig.js
fi
}
|