Skip to content

Commit ac27867

Browse files
committed
Manual user del 2
1 parent 6efaeed commit ac27867

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

linux/postrm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ if [ -x /usr/bin/systemctl ]; then
77
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || true
88
fi
99

10-
echo "If no longer needed, remove ${USERNAME} manually: userdel ${USERNAME}"
10+
if id -u ${USERNAME} >/dev/null 2>&1
11+
then
12+
echo "If no longer needed, remove ${USERNAME} manually: userdel ${USERNAME}"
13+
fi

0 commit comments

Comments
 (0)