11 lines
355 B
Plaintext
11 lines
355 B
Plaintext
|
#!/bin/bash
|
||
|
# Sauvegarde des bases de filtres obligatoires (#8621)
|
||
|
DB="$(CreoleGet container_path_proxy '')/var/lib/blacklists/db"
|
||
|
for filter in 'adult' 'redirector';do
|
||
|
if [ -d $DB/$filter ];then
|
||
|
mkdir -p /tmp/db/$filter
|
||
|
cp -f $DB/$filter/urls /tmp/db/$filter/urls
|
||
|
cp -f $DB/$filter/domains /tmp/db/$filter/domains
|
||
|
fi
|
||
|
done
|