File: //proc/thread-self/root/var/lib/dpkg/info/google-osconfig-agent.postrm
#!/bin/sh
set -e
# Automatically added by dh_installsystemd/13.6ubuntu1
if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_installsystemd/13.6ubuntu1
if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper mask 'google-osconfig-agent.service' >/dev/null || true
fi
fi
if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper purge 'google-osconfig-agent.service' >/dev/null || true
deb-systemd-helper unmask 'google-osconfig-agent.service' >/dev/null || true
fi
fi
# End automatically added section
if [ "$1" = upgrade ]; then
# If the old directory exists make sure we set the file there.
[ -e /etc/osconfig ] && touch /etc/osconfig/osconfig_agent_restart_required
touch /var/lib/google_osconfig_agent/osconfig_agent_restart_required
fi