| Server IP : 162.241.252.224 / Your IP : 216.73.217.72 Web Server : Apache System : Linux box5745.bluehost.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64 User : stmarga7 ( 2112) PHP Version : 8.3.37 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /scripts/ |
Upload File : |
#!/usr/local/cpanel/3rdparty/bin/perl
# Copyright 2026 WebPros International, LLC
# All rights reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited.
use cPstrict;
# The distinct entry point is the core/plugin capability contract. Older
# plugins lack it, so core must not mistake the legacy UI-only sync for full
# runtime reconciliation.
package scripts::comet_runtime_sync;
our $SYNC_SCRIPT = '/usr/local/cpanel/scripts/comet_license_registration_sync';
sub run (@args) {
require $SYNC_SCRIPT;
my ( $disable, $package_arg, $check_only, $try_lock );
if ( @args == 1 && $args[0] eq '--disable' ) { $disable = 1; }
elsif ( @args == 1 && $args[0] eq '--check' ) { $check_only = 1; }
elsif ( @args == 1 && $args[0] eq '--try-lock' ) { $try_lock = 1; }
elsif ( @args == 2 && $args[0] eq '--package-install' && $args[1] =~ m/\A[0-9a-z-]+\z/ ) { $package_arg = $args[1]; }
elsif (@args) { die "Usage: comet_runtime_sync [--disable | --check | --try-lock | --package-install mode]\n"; }
return scripts::comet_license_registration_sync::run( $disable, $package_arg, $check_only, $try_lock );
}
unless (caller) {
require Whostmgr::CometBackup::Logger;
my $logger = Whostmgr::CometBackup::Logger->new();
local $SIG{__WARN__} = sub ($message) {
local $@;
local $!;
$logger->warn($message);
print STDERR $message;
};
my $status = eval { run(@ARGV); };
my $error = $@;
if ($error) { $logger->error($error); die $error; }
exit $status;
}
1;