We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 133b27f commit 6efaeedCopy full SHA for 6efaeed
2 files changed
freebsd/postrm
@@ -5,5 +5,5 @@ USERNAME=defguard
5
6
if id -u ${USERNAME} >/dev/null 2>&1
7
then
8
- pw user del -n ${USERNAME}
+ echo "If no longer needed, remove ${USERNAME} manually: pw user del -n ${USERNAME}"
9
fi
linux/postrm
@@ -3,15 +3,8 @@ set -e
3
4
USERNAME=defguard
-case $1 in
-0)
- if [ "${1}" = 'purge' ]; then
- userdel ${USERNAME} >/dev/null || true
10
- fi
11
- ;;
12
-1)
13
- if [ -x /usr/bin/systemctl ]; then
14
- /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || true
15
16
17
-esac
+if [ -x /usr/bin/systemctl ]; then
+ /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || true
+fi
+
+echo "If no longer needed, remove ${USERNAME} manually: userdel ${USERNAME}"
0 commit comments