paivana

HTTP paywall reverse proxy
Log | Files | Refs | Submodules | README | LICENSE

paivana-httpd.postrm (655B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 SECRET_CONF="/etc/paivana/secrets/paivana.secret.conf"
      6 
      7 case "${1}" in
      8 purge)
      9   # Added by postinst; dpkg does not clean up statoverrides itself, and
     10   # leaving one behind makes a later reinstall inherit a mode nothing
     11   # in the package accounts for.
     12   if dpkg-statoverride --list ${SECRET_CONF} >/dev/null 2>&1
     13   then
     14     dpkg-statoverride --remove ${SECRET_CONF}
     15   fi
     16   rm -f ${SECRET_CONF}
     17   deluser --system --quiet paivana-httpd || true
     18   ;;
     19 remove | upgrade | failed-upgrade | abort-install | abort-upgrade | disappear)
     20   ;;
     21 
     22   *)
     23   echo "postrm called with unknown argument \`${1}'" >&2
     24   exit 1
     25   ;;
     26 esac
     27 
     28 #DEBHELPER#
     29 
     30 exit 0