#!/bin/sh set -e case "$1" in remove) # if we're removing, we need to save "nuke-graph-directory.sh" so that # we can still purge "/var/lib/docker" later if necessary # see also docker.io.postrm if \ [ -d /var/lib/docker ] \ && [ -x /usr/share/docker.io/contrib/nuke-graph-directory.sh ] \ ; then if cp -v /usr/share/docker.io/contrib/nuke-graph-directory.sh /var/lib/docker/; then chmod +x /var/lib/docker/nuke-graph-directory.sh || : fi # Also capture the debconf choice for purge now, while templates are still available. # We store it as a flag file because templates are gone during postrm purge. # (Addressing #1021914) if [ -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule db_get docker.io/purge-data || true if [ "$RET" = "true" ]; then touch /var/lib/docker/.purge_sentinel fi fi fi ;; *) ;; esac # Automatically added by dh_installsystemd/14.4 if [ -z "$DPKG_ROOT" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then deb-systemd-invoke stop 'docker.service' 'docker.socket' >/dev/null || true fi # End automatically added section # Automatically added by dh_installinit/14.4 if [ -z "$DPKG_ROOT" ] && [ "$1" = remove ] && [ -x "/etc/init.d/docker" ] ; then invoke-rc.d --skip-systemd-native docker stop || exit 1 fi # End automatically added section # Automatically added by dh_installdeb/14.4 dpkg-maintscript-helper mv_conffile /etc/bash_completion.d/docker.io /etc/bash_completion.d/docker 1.2.0\~ -- "$@" dpkg-maintscript-helper mv_conffile /etc/default/docker.io /etc/default/docker 1.2.0\~ -- "$@" dpkg-maintscript-helper mv_conffile /etc/init.d/docker.io /etc/init.d/docker 1.2.0\~ -- "$@" dpkg-maintscript-helper mv_conffile /etc/init/docker.io.conf /etc/init/docker.conf 1.2.0\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/docker 1.11.2\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/init/docker.conf 18.06.0\~ -- "$@" # End automatically added section