From 3d6dabbf2dbf0d145b101e2eb8d6fac53246caf5 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 28 Sep 2021 16:27:15 +0200 Subject: be verbose about actual removals --- localrmaccount | 1 + 1 file changed, 1 insertion(+) (limited to 'localrmaccount') diff --git a/localrmaccount b/localrmaccount index 8424acd..f77167a 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 "$2" ] || echo "$2" >> "$p/$u.getent" deluser --remove-home --backup --backup-to "$p" "$u" -- cgit v1.2.3