#!/bin/sh -e #DEBHELPER# popcon_conf=/etc/popularity-contest.conf nd_popcon_conf=/etc/popularity-contest.d/neurodebian.conf remove_neurodebian_popcon_pre161() { # Adjust popularity-contest.conf if [ -e "$popcon_conf" ] \ && grep -q "http://neuro.debian.net/cgi-bin/popcon-submit.cgi" $popcon_conf; then echo "Removing NeuroDebian url for Popularity Contest submissions." # First remove any explicit mentioning and then empty additions sed -i -e 's,http://neuro.debian.net/cgi-bin/popcon-submit.cgi,,g' \ -e '/SUBMITURLS+=" *"/d' \ -e '/SUBMITURLS="$SUBMITURLS *"/d' \ "$popcon_conf" fi } # If requested to be purged -- remove our entry if [ "$1" = "purge" ]; then remove_neurodebian_popcon_pre161 fi