diff options
Diffstat (limited to 'localrmaccount')
-rwxr-xr-x | localrmaccount | 1 |
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" |