summaryrefslogtreecommitdiff
path: root/localrmaccount
diff options
context:
space:
mode:
Diffstat (limited to 'localrmaccount')
-rwxr-xr-xlocalrmaccount1
1 files changed, 1 insertions, 0 deletions
diff --git a/localrmaccount b/localrmaccount
index 8424acd..ac0abf8 100755
--- a/localrmaccount
+++ b/localrmaccount
@@ -6,4 +6,5 @@ u="$1"; shift
p=/var/backups/users-dropped/
getent passwd "$u" > "$p/$u.getent"
getent group "$u" >> "$p/$u.getent"
+[ -z "$1" ] || echo "$1" >> "$p/$u.getent"
deluser --remove-home --backup --backup-to "$p" "$u"