5 popcon_conf=/etc/popularity-contest.conf
6 nd_popcon_conf=/etc/popularity-contest.d/neurodebian.conf
7 remove_neurodebian_popcon_pre161() {
8 # Adjust popularity-contest.conf
9 if [ -e "$popcon_conf" ] \
10 && grep -q "http://neuro.debian.net/cgi-bin/popcon-submit.cgi" $popcon_conf; then
11 echo "Removing NeuroDebian url for Popularity Contest submissions."
12 # First remove any explicit mentioning and then empty additions
13 sed -i -e 's,http://neuro.debian.net/cgi-bin/popcon-submit.cgi,,g' \
14 -e '/SUBMITURLS+=" *"/d' \
15 -e '/SUBMITURLS="$SUBMITURLS *"/d' \
20 # If requested to be purged -- remove our entry
21 if [ "$1" = "purge" ]; then
22 remove_neurodebian_popcon_pre161