#!/bin/bash
#CLOUD MCGIDPATCH INSTALL

currentpath=$(pwd)

if [ -e "$pathtoconfig1/main.default" ]; then                                                                                                        
  sed 's#SuexecEnableLVE on# #g' "$pathtoconfig1/main.default" | sed 's#<Location /whm-server-status>#SuexecEnableLVE on\n<Location /whm-server-status>#g'> main.default
  mv main.default $pathtoconfig1                                                                                                                   
  echo "File $pathtoconfig1/main.default successfully modified. Add ..."
else                                                                                                                                                 
  echo "ATENTION!!!! Cann't find main.default template" "NEWLINE"                                                                          
fi      
    
cd $currentpath
                                                       



                          
