Skip to content
Snippets Groups Projects
Commit ba197845 authored by Patrick Cernko's avatar Patrick Cernko
Browse files

use blacklist.txt and whitelist.txt from gen_config

parent bf23271d
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,9 @@ robot = u'$robot'
url = u'$wwsympa_url'
EOF
configxml=$tmpdir/input.xml
$base/gen_config.py $inputpy $configxml
blacklist=$tmpdir/blacklist.txt
whitelist=$tmpdir/whitelist.txt
$base/gen_config.py $inputpy $configxml $blacklist $whitelist
# sympa user needs access
chmod 0644 $configxml
sympa --create_list --robot $robot --input_file $configxml
......@@ -74,4 +76,11 @@ chown sympa:sympa $dumpfile
chmod 0640 $dumpfile
sympa --restore_users --list=$sympalistname@$robot
search_filters=/var/lib/sympa/list_data/$robot/$sympalistname/search_filters
install -d -m 750 -o sympa -g sympa $search_filters
for f in $blacklist $whitelist; do
[ -s $f ] || continue
install -m 640 -o sympa -g sympa $f $search_filters
done
echo sshml rmlist -a $mmlistname
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment