�&ǐk�@'bJ�h�ۊL'}T� :��'2�Z#$��n�a��� �>a��`��_3d�Qpt�/�P -��#5�,�M��� �pA:©�q�����NW��ډ�A���� �9nʺج���� �TSM��{J6?7��r�@�\����D��� �׶���s�f�TJj?"��D��`?��̒� b�#�%�C*v�$�{�$����5Ծ�F�s��y�e/8��h-�f�̰&(����Gj�L:U� 2�� ����v�_k����Y��gp,�k�WF�R������_C�R��N@���R�@�ߔ?A�w9���F("iNa-S���Q�o�3tDMLh*�#4k�T/iQ��Y*�G��m����)��8�hBm/�I�,g�ﯖ���Z��}�Cz�q@´��d.����L�ŕ�,��1�Z�܌�: ̪���F+J-'��c�tvJ8��]Q-��b��y �6;*J`r_�d ��'�G ~p��)'�C,�%F��E(��2�k�����lР�z�!�=t ��_�0��f7��� ;�p�|�U �% \$opt_user, 'all' => \$opt_all, 'expire-invites' => \$opt_expire_invites, 'quiet' => \$opt_quiet, 'help' => \$opt_help, ) and !@args and ( $opt_user xor $opt_all ) or do { _print_usage(); return 1; }; if ($opt_help) { _print_usage(); return 0; } my $logger = Cpanel::Logger->new(); my $users; if ($opt_user) { $users = [$opt_user]; } else { $users = Cpanel::Config::Users::getcpusers(); } my ( $total, @failed ); for my $u ( sort @$users ) { eval { Whostmgr::UserManager::upgrade_if_needed( $u, { note => $u, quiet => $opt_quiet, expire_invites => $opt_expire_invites, } ); }; if ( my $exception = $@ ) { push @failed, $u; $logger->warn("There was a problem with the $u account: $exception"); # Always show errors, even in quiet mode } ++$total; } # Always show this summary even in quiet mode $logger->info( sprintf( 'Processed %d total accounts with %d errors. The following accounts had errors: %s', $total, scalar(@failed), join( ', ', @failed ) || '(none)' ) ); return 0; } sub _print_usage { print < | --all] [--quiet] [--expire-invites] Check the schema versions for Subaccount databases, and upgrade if needed. The normal way to run this script is with --all, which instructs it to handle all users on the system. If you only want to handle one user, you can specify it as --user=. If --quiet is specified, only error messages will be reported. Otherwise, general diagnostic information is logged. The optional --expire-invites flag instructs the script to also expire any existing invites. This is mainly needed for transfers and restores. EOU return; } 1;