Edit File: compilerscheck
#!/usr/local/cpanel/3rdparty/bin/perl # cpanel - compilerscheck Copyright 2010 cPanel, Inc. # All rights Reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited use strict; use warnings; use Whostmgr::Groups (); if ( !getgrnam('compiler') ) { print "[compilerscheck] compiler group missing\n"; } if ( !getpwnam('cpanel') ) { print "[compilerscheck] cpanel user missing\n"; } my $gr_ref = Whostmgr::Groups::getgroups('cpanel'); if ( !grep( /^compiler$/, @{$gr_ref} ) ) { print "Adding cpanel to the compiler group....."; Whostmgr::Groups::add_user_to_group( 'cpanel', 'compiler' ); print "Done\n"; }