3 popcon_conf=/etc/popularity-contest.conf
4 if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then
5 # Adjust popularity-contest.conf
6 if [ -e "$popcon_conf" ]; then
7 # Fix dashism missing += operator
8 if grep -q 'SUBMITURLS+="' "$popcon_conf"; then
9 echo "Adjusting addition of new entries in $popcon_conf for dash."
10 sed -i -e 's,SUBMITURLS+=",SUBMITURLS="$SUBMITURLS,g' "$popcon_conf"
12 if ! grep -q 'SUBMITURLS.*neuro.debian.net' "$popcon_conf"; then
13 echo "Adding NeuroDebian url for Popularity Contest submissions."
14 echo -e 'SUBMITURLS="$SUBMITURLS http://neuro.debian.net/cgi-bin/popcon-submit.cgi"' >> "$popcon_conf"