#!/bin/sh echo "" echo "#" echo "# NutsMail - cPanel Installation Script (Pat H)" echo "#" echo "" echo "Enter the exact path to the NutsMail archive." echo "" echo -n "Location: " read response if [ -f "$response" ]; then echo "Please wait..." else echo "" echo "File does not exist!" echo "" exit fi cd /usr/local/cpanel/base/3rdparty/ mkdir nutsmail cd nutsmail cp $response /usr/local/cpanel/base/3rdparty/nutsmail/ tar -zxvf $response echo "" echo "Please wait..." echo "" sleep 1 cp -R /usr/local/cpanel/base/3rdparty/squirrelmail/plugins/login_auth /usr/local/cpanel/base/3rdparty/nutsmail/plugins/login_auth cd /usr/local/cpanel/base/3rdparty/ mv squirrelmail squirrelmail.cpanel mv nutsmail squirrelmail cd squirrelmail cd config cp config.php config.php.bak sed -e '/'todo'/ a\ $plugins[25] = '\''login_auth'\'';' config.php >> config.php.new cp config.php.new config.php cp config_local.php config_local.php.bak rm config_local.php echo ""'' >> config_local.php cd /usr/local/cpanel/base/ sed -e '/SquirrelMail/ a\
\
NutsMail