From 51eb4b5f643ac1d8ee7a2ab300a792827d53a287 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 18 May 2023 10:48:13 +0200 Subject: fix store optional account removal reason --- localrmaccount | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3