#!/bin/bash
#Created by cPanel, updated by GreenGeeks...
query="$1"
find=`echo "$query" | awk -F: '{ print $1 }'`
if [ -f /etc/httpd/conf/httpd.conf ]; then
cat /etc/httpd/conf/httpd.conf | grep $find -2 |grep DocumentRoot -3; else
cat /etc/apache2/conf/httpd.conf | grep $find -2 |grep DocumentRoot -3;
fi