#!/usr/bin/bash #!/usr/bin/bash cPanel_Check(){ if [[ -d /etc/cpanel ]]; then echo "This is a cPanel server." ea4_Dir_Check else echo "This does not appear to be a cPanel server." return 1 fi } ea4_Dir_Check(){ if [[ -d /etc/cpanel/ea4/ ]]; then echo 'The `/etc/cpanel/ea4/` directory exists, proceeding...' else echo 'WARNING: `/etc/cpanel/ exists, but is missing the `ea4/` directory, ' return 2 fi } cPanel_Check