diff options
Diffstat (limited to 'localrmstaleaccounts')
-rwxr-xr-x | localrmstaleaccounts | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/localrmstaleaccounts b/localrmstaleaccounts index 17c0f6e..d095f0d 100755 --- a/localrmstaleaccounts +++ b/localrmstaleaccounts @@ -11,15 +11,6 @@ warn() ( echo >&2 "WARNING: $1" ) -backupdeluser() { - set -e - u="$1"; shift - p=/var/backups/users-dropped/ - getent passwd "$u" > "$p/$u.getent" - getent group "$u" >> "$p/$u.getent" - deluser --remove-home --backup --backup-to "$p" "$u" -} - maybestaleuser() { warn "Skipping possibly non-stale account for user $user" } @@ -47,7 +38,7 @@ for user in $@; do continue fi if untouchedinbox "$home" || untouchednewmail "$home"; then - backupdeluser "$user" + localrmaccount "$user" continue fi maybestaleuser "$user" |