#! /bin/sh # postrm script for nvidia-compute-utils-550 # # see: dh_installdeb(1) # # Copyright (C) 2018 Canonical Ltd # Authors: Alberto Milone set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see /usr/share/doc/packaging-manual/ NVPD_USER="nvidia-persistenced" case "$1" in remove|purge) # Remove the nvidia-persistenced user if id "$NVPD_USER" > /dev/null 2>&1; then userdel "$NVPD_USER" || true fi ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 0 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. # Automatically added by dh_installsystemd/13.14.1ubuntu5 if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section