#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
  if 0;

#!/usr/bin/perl
#-------------------------------------------------------------------------------
# cpanel - cronconfig/uninstall                   Copyright(c) 2011 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cpanel license. Unauthorized copying is prohibited
#-------------------------------------------------------------------------------

BEGIN {
    unshift @INC, '/usr/local/cpanel';
}

print "<b>Now uninstalling Cron Config...</b>\n";
unlink("/usr/local/cpanel/whostmgr/docroot/cgi/addon_cronconfig.cgi");
print "<b>Done</b><br>\n";

if ( -e "/usr/local/cpanel/bin/unregister_appconfig" ) {
    system '/usr/local/cpanel/bin/unregister_appconfig', 'appconfig/cronconfig.conf';
}
else {
    unlink("/var/cpanel/apps/cronconfig.conf");
}

