]> git.donarmstrong.com Git - neurodebian.git/blob - debian/neurodebian-repository.postrm
initial postinst and postrm scripts for neurodebian-repository pkg
[neurodebian.git] / debian / neurodebian-repository.postrm
1 #!/bin/bash
2
3 set -e
4
5
6 case "$1" in
7     purge)
8                 rm -f /etc/apt/sources.list.d/neurodebian.sources*.list
9                 db_get neurodebian-repository/apt-update || :
10                 if [ "$RET" = "true" ] ; then
11                    apt-get update
12                 fi
13     ;;
14
15     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
16     ;;
17
18     *)
19         echo "postrm called with unknown argument \`$1'" >&2
20         exit 1
21     ;;
22 esac
23
24 #DEBHELPER#
25
26 exit 0