tools/debian/cockpit-ws.postrm
raw| 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
| 4 | #DEBHELPER# |
| 5 | |
| 6 | # clean up dynamic motd/issue symlinks on removal |
| 7 | if [ "$1" = purge ]; then |
| 8 | [ -L /etc/motd.d/cockpit ] && rm /etc/motd.d/cockpit || true |
| 9 | [ -L /etc/issue.d/cockpit.issue ] && rm /etc/issue.d/cockpit.issue || true |
| 10 | rm -f /etc/cockpit/disallowed-users |
| 11 | fi |