#!/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 fi ;; *) ;; esac # Automatically added by dh_installsystemd/11.1.6ubuntu1 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then deb-systemd-invoke stop 'docker.socket' >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/11.1.6ubuntu1 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then deb-systemd-invoke stop 'docker.service' >/dev/null || true fi # End automatically added section # Automatically added by dh_installdeb/11.1.6ubuntu1 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\~ -- "$@" # End automatically added section # because we had to use "dh_installinit --no-start", we get to make sure the daemon is stopped on uninstall # (this is adapted from debhelper's "autoscripts/prerm-init-norestart") if [ "$1" = remove ]; then invoke-rc.d docker stop fi