package Cpanel::Easy::Apache::Utils::Legacy;

# cpanel - Cpanel/Easy/Apache/Utils/Legacy.pm        Copyright(c) 2014 cPanel, Inc.
#                                                              All rights Reserved.
# copyright@cpanel.net                                            http://cpanel.net
# This code is subject to the cpanel license.    Unauthorized copying is prohibited

sub run {
    if ( -e '/var/cpanel/use_old_easyapache' ) {
        if ( !-t STDIN ) {
            print "Location: /scripts2/legacybuildapache\n\n";
            exit;
        }
        else {
            exec '/usr/local/cpanel/scripts/legacyeasyapache';
        }
    }
}

1;
