]> git.donarmstrong.com Git - neurodebian.git/blob - debian/neurodebian-popularity-contest.postinst
All backported packages will depend on neurodebian-popularity-contest now
[neurodebian.git] / debian / neurodebian-popularity-contest.postinst
1 #!/bin/bash -e
2
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" ] && ! grep -q 'SUBMITURLS.*neuro.debian.net' "$popcon_conf"; then
7                 echo "Adding NeuroDebian url for Popularity Contest submissions."
8                 echo -e 'SUBMITURLS+=" http://neuro.debian.net/cgi-bin/popcon-submit.cgi"' >> "$popcon_conf"
9         fi
10 fi
11
12 #DEBHELPER#