diff options
Diffstat (limited to 'localrmaccount')
-rwxr-xr-x | localrmaccount | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/localrmaccount b/localrmaccount index f77167a..ac0abf8 100755 --- a/localrmaccount +++ b/localrmaccount @@ -6,5 +6,5 @@ u="$1"; shift p=/var/backups/users-dropped/ getent passwd "$u" > "$p/$u.getent" getent group "$u" >> "$p/$u.getent" -[ -z "$2" ] || echo "$2" >> "$p/$u.getent" +[ -z "$1" ] || echo "$1" >> "$p/$u.getent" deluser --remove-home --backup --backup-to "$p" "$u" |