$sys->install( @{ $data->{pre} } ); # apt, yum, and dnf’s `install` will install if its not installed, upgrade if its old, noop if its already the latest
#!/usr/local/cpanel/3rdparty/bin/perl
# cpanel - ea_install_profile Copyright(c) 2016 cPanel, Inc.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
package ea_install_profile;
use Cpanel::Config::Httpd;
print "Error: $msg\n" if defined $msg;
print "usage: ea_install_profile [--firstinstall|--install] profile_file\n";
print " With no flags, $0 will only do conflict resolution on the profile.\n";
print " --install: Resolve conflicts and install the profile.\n";
print " --firstinstall: Attempt to do the install without conflict resolution and fallback\n";
print " to doing --install if it fails. This is only intended to be used\n";
print " on a fresh cPanel install.\n";
die "May only be run if you are using EasyApache 4" if ( !Cpanel::Config::Httpd::is_ea4() );
if ( $args[$idx] eq "--firstinstall" ) {