mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Fix the RHEL install script, mostly for RHEL 5.
Summary: A bunch of various fixes for the RHEL install script. Most of them are stylistic, one of them fixes the EPEL repo release RPM URL for RHEL 5. (enough acronyms there?) Test Plan: Tried installing on Fedora (which is treated as RHEL 6 due to how we handle being unable to find version in the script). Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4038
This commit is contained in:
parent
b04114f95c
commit
755e8eb7d6
1 changed files with 12 additions and 7 deletions
|
@ -33,7 +33,7 @@ else
|
||||||
confirm
|
confirm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $RHEL_MAJOR_VER < 6 ]]
|
if [[ $RHEL_MAJOR_VER < 6 && $RHEL_MAJOR_VER > 0 ]]
|
||||||
then
|
then
|
||||||
echo "** WARNING **"
|
echo "** WARNING **"
|
||||||
echo "A major version less than 6 was detected. Because of this,"
|
echo "A major version less than 6 was detected. Because of this,"
|
||||||
|
@ -63,8 +63,12 @@ if [[ $RHEL_MAJOR_VER == 5 ]]
|
||||||
then
|
then
|
||||||
# RHEL 5's "php" package is actually 5.1. The "php53" package won't let us install php-pecl-apc.
|
# RHEL 5's "php" package is actually 5.1. The "php53" package won't let us install php-pecl-apc.
|
||||||
# (it tries to pull in php 5.1 stuff) ...
|
# (it tries to pull in php 5.1 stuff) ...
|
||||||
echo "Adding EPEL repo, for git."
|
yum repolist | grep -i epel
|
||||||
$SUDO rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "It doesn't look like you have the EPEL repo enabled. We are to add it"
|
||||||
|
echo "for you, so that we can install git."
|
||||||
|
$SUDO rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
|
||||||
|
fi
|
||||||
YUMCOMMAND="$SUDO yum install httpd git php53 php53-cli php53-mysql php53-process php53-devel php53-gd gcc wget make pcre-devel mysql-server"
|
YUMCOMMAND="$SUDO yum install httpd git php53 php53-cli php53-mysql php53-process php53-devel php53-gd gcc wget make pcre-devel mysql-server"
|
||||||
else
|
else
|
||||||
# RHEL 6+ defaults with php 5.3
|
# RHEL 6+ defaults with php 5.3
|
||||||
|
@ -89,7 +93,6 @@ then
|
||||||
# set up PEAR, and install apc.
|
# set up PEAR, and install apc.
|
||||||
echo "Attempting to install PEAR"
|
echo "Attempting to install PEAR"
|
||||||
wget http://pear.php.net/go-pear.phar
|
wget http://pear.php.net/go-pear.phar
|
||||||
echo "Downloading PEAR: $PEARCOMMAND"
|
|
||||||
$SUDO php go-pear.phar && $SUDO pecl install apc
|
$SUDO php go-pear.phar && $SUDO pecl install apc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -98,14 +101,16 @@ then
|
||||||
echo "The apc install failed. Continuing without APC, performance may be impacted."
|
echo "The apc install failed. Continuing without APC, performance may be impacted."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$(pidof httpd)" ]]
|
pidof httpd 2>&1 > /dev/null
|
||||||
|
if [[ $? -eq 0 ]]
|
||||||
then
|
then
|
||||||
echo "If php was installed above, please run: /etc/init.d/httpd graceful"
|
echo "If php was installed above, please run: /etc/init.d/httpd graceful"
|
||||||
else
|
else
|
||||||
echo "Please remember to start the httpd with: /etc/init.d/httpd start"
|
echo "Please remember to start the httpd with: /etc/init.d/httpd start"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! "$(pidof mysql)" ]]
|
pidof mysqld 2>&1 > /dev/null
|
||||||
|
if [[ $? -ne 0 ]]
|
||||||
then
|
then
|
||||||
echo "Please remember to start the mysql server: /etc/init.d/mysqld start"
|
echo "Please remember to start the mysql server: /etc/init.d/mysqld start"
|
||||||
fi
|
fi
|
||||||
|
@ -139,4 +144,4 @@ echo
|
||||||
echo
|
echo
|
||||||
echo "Install probably worked mostly correctly. Continue with the 'Configuration Guide':";
|
echo "Install probably worked mostly correctly. Continue with the 'Configuration Guide':";
|
||||||
echo
|
echo
|
||||||
echo " http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html";
|
echo " http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html";
|
||||||
|
|
Loading…
Reference in a new issue