#!/usr/local/cpanel/3rdparty/bin/perl

#                                      Copyright 2024 WebPros International, LLC
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited.

package onboot::wp2;

use cPstrict;

use Cpanel::DoOnce      ();
use Cpanel::ServerTasks ();

exit( run(@ARGV) ) unless caller();

sub run (@args) {

    Cpanel::DoOnce::remove_flag('cl_pro_check_once_per_boot');

    # Note: should prefer running the install script directly: perl install/WP2.pm
    Cpanel::ServerTasks::schedule_task( ['WP2'], 10, "setup_cloudlinux" );
    Cpanel::ServerTasks::schedule_task( ['WP2'], 10, 'setup_cagefs_mountpoints' );

    return 0;
}

1;
