ascension

Migrate DNS zones to the GNU Name System
Log | Files | Refs | README | LICENSE

prerm (763B)


      1 #!/bin/sh
      2 # prerm script for ascension-bind
      3 #
      4 # see: dh_installdeb(1)
      5 # load debconf library
      6 set -e
      7 
      8 mkdir -p /etc/ascension.d/
      9 
     10 # remove systemd stuff
     11 deb-systemd-invoke stop gnunet-ascension
     12 deb-systemd-invoke disable gnunet-ascension
     13 
     14 # remove the systemd files
     15 unlink /lib/systemd/system/gnunet-ascension.service
     16 rm /etc/ascension.d/gnunet-ascension.service
     17 
     18 exit 0
     19 
     20 # Automatically added by dh_python3:
     21 if which py3clean >/dev/null 2>&1; then
     22 	py3clean -p python3-ascension 
     23 else
     24 	dpkg -L python3-ascension | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)'
     25 	find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
     26 fi
     27 
     28 # End automatically added section
     29