Fix delete date

tags/smeserver-expire-accounts-0.1.7-1
Daniel Berteaud 9 years ago
parent 1addbf8eb8
commit ab7648d9c0
  1. 8
      root/sbin/e-smith/expire-accounts

@ -71,9 +71,11 @@ foreach my $user ($a->users){
month => $2, month => $2,
day => $3, day => $3,
); );
my $delete_date = $locked->add( days => $delete); my $delete_date = $locked->add( days => $delete );
print $user->key . ": Account must be deleted\n" if $debug; if ( $delete_date < $now ){
push @delete, $user->key; print $user->key . ": Account must be deleted\n" if $debug;
push @delete, $user->key;
}
} }
next; next;
} }

Loading…
Cancel
Save