little change for the error message

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4775 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2009-12-15 07:42:47 +00:00
parent dc1f957bb3
commit dea12493cd

View File

@ -53,22 +53,14 @@ if [ -e "/etc/redhat-release" ]; then
rpm -q php >/dev/null
if [ $? != 0 ]; then
echo ""
echo "#####Notice!!!!#####";
echo "php has not been installed yet; ";
echo "please run: yum install php";
echo "before install xCAT-UI";
echo "####################";
echo "Error! php has not been installed yet;please run 'yum install php' before installing xCAT-UI";
exit -1;
fi
else #SUSE
rpm -q apache2-mod_php5 php5 >/dev/null
if [ $? != 0 ]; then
echo ""
echo "#####Notice!!!!#####";
echo "apache2-mod_php5 and php5 have not been installed yet;"
echo "please run: zypper install apache2-mod_php5 php5"
echo "before install xCAT-UI"
echo "####################";
echo "Error! apache2-mod_php5 and php5 have not been installed yet; please run 'zypper install apache2-mod_php5 php5'before installing xCAT-UI"
exit -1;
fi
fi