]> git.donarmstrong.com Git - neurodebian.git/blob - debian/neurodebian-popularity-contest.postrm
Move legend.
[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                            -e '/SUBMITURLS="$SUBMITURLS *"/d' \
15                         "$popcon_conf"
16         fi
17 fi