30 lines
968 B
Plaintext
30 lines
968 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
initfile="$(CreoleGet container_path_proxy '')/etc/init.d/winbind"
|
||
|
# Utilisation du script d'init fourni par le paquet (#14608)
|
||
|
if [ -f ${initfile}.dpkg-dist ];then
|
||
|
mv -f ${initfile}.dpkg-dist ${initfile}
|
||
|
fi
|
||
|
|
||
|
# Restauration des bases de filtres obligatoires (#8621)
|
||
|
DB="$(CreoleGet container_path_proxy '')/var/lib/blacklists/db"
|
||
|
if [ -d /tmp/db ];then
|
||
|
for filter in 'adult' 'redirector';do
|
||
|
mkdir -p $DB/$filter
|
||
|
if [ -f /tmp/db/$filter/urls ];then
|
||
|
cp -f /tmp/db/$filter/urls $DB/$filter/urls
|
||
|
fi
|
||
|
if [ -f /tmp/db/$filter/domains ];then
|
||
|
cp -f /tmp/db/$filter/domains $DB/$filter/domains
|
||
|
fi
|
||
|
done
|
||
|
fi
|
||
|
|
||
|
# Suppression des restrictions pour squid (#15760)
|
||
|
[ -f /etc/apparmor.d/usr.sbin.squid ] && ln -nsf /etc/apparmor.d/usr.sbin.squid /etc/apparmor.d/disable/
|
||
|
|
||
|
# Suppression des configurations fournies par le paquet freeradius (#16147)
|
||
|
rm -f /etc/freeradius/modules/*.dpkg-dist
|
||
|
|
||
|
exit 0
|