[bug] http://files.directadmin.com/services/custombuild/options

sumar

New member
Joined
Sep 30, 2007
Messages
1
http://files.directadmin.com/services/custombuild/options

if [ "${wantphp4}" = "yes" ]; then
echo -n "Do you want to have PHP4 as CLI or CGI? (cli/cgi): ";
read php4type;

until [ "${php4type}" = "cli" ] || [ "${php4type}" = "cgi" ]; do
echo -n "Please enter 'cli' or 'cgi': "
read php4type;
done

if [ "${php4type}" = "cli" ]; then
echo "php4_cli=yes" >> ${OPTIONS_CONF}
echo "php4_cgi=no" >> ${OPTIONS_CONF}
elif [ "${php4type}" = "cgi" ]; then
echo "php5_cli=no" >> ${OPTIONS_CONF}
echo "php5_cgi=yes" >> ${OPTIONS_CONF}

fi
elif [ "${wantphp4}" = "no" ]; then
echo "php4_cli=no" >> ${OPTIONS_CONF}
echo "php4_cgi=no" >> ${OPTIONS_CONF}
fi
 
Back
Top