]> git.donarmstrong.com Git - neurodebian.git/blob - debian/neurodebian-popularity-contest.postrm
b392f7bfb28416d0c1e38094bcdc56485db8016e
[neurodebian.git] / debian / neurodebian-popularity-contest.postrm
1 #!/bin/sh -e
2
3 #DEBHELPER#
4
5 # If requested to be purged -- remove our entry
6 popcon_conf=/etc/popularity-contest.conf
7 if [ "$1" = "purge" ]; then
8         # Adjust popularity-contest.conf
9         if [ -e "$popcon_conf" ]; then
10                 echo "Removing NeuroDebian url for Popularity Contest submissions."
11                 # First remove any explicit mentioning and then empty additions
12                 sed -i -e 's,http://neuro.debian.net/cgi-bin/popcon-submit.cgi,,g' \
13                            -e '/SUBMITURLS+=" *"/d'\
14                         "$popcon_conf"
15         fi
16 fi