#!/bin/sh
set -e

#DEBHELPER#

# clean up dynamic motd/issue symlinks on removal
if [ "$1" = purge ]; then
    [ -L /etc/motd.d/cockpit ] && rm /etc/motd.d/cockpit || true
    [ -L /etc/issue.d/cockpit.issue ] && rm /etc/issue.d/cockpit.issue || true
    rm -f /etc/cockpit/disallowed-users
fi
