# Configuration is stored in /etc/gforge
#
# Currently supported:
-# * Red Hat 4 / CentOS 4
# * Red Hat 5 / CentOS 5
# * OpenSuSE 11 (contributed by Martin Bernreuther)
#
echo "Installing FusionForge ...";
fi
+echo "Install type = $type"
if [ "$type" = "redhat" ]
then
+ echo "Installing php"
yum -y install php
+ echo "Running php fusionforge-install-1-deps.php $deps"
php fusionforge-install-1-deps.php $deps
+ echo "Running php fusionforge-install-2.php "$hostname" apache apache"
php fusionforge-install-2.php "$hostname" apache apache
if [ $mode = "install" ]
then
+ echo "Running php fusionforge-install-3-db.php"
php fusionforge-install-3-db.php
+ echo "Running php db/upgrade-db.php"
php db/upgrade-db.php
+ echo "Running php fusionforge-install-4-config.php"
+ php fusionforge-install-4-config.php
# Post installation fixes.
perl -spi -e "s/^#ServerName (.*):80/ServerName $hostname:80/" /etc/httpd/conf/httpd.conf
+ # Disable ssl
+ perl -spi -e "s/^Include/#Include/" /etc/gforge/httpd.conf.d/ssl-on.inc
chkconfig httpd on
chkconfig postgresql on
cp plugins/*/etc/cron.d/* /etc/cron.d/
service crond reload
else
+ echo "Running php db/upgrade-db.php"
php db/upgrade-db.php
+ php utils/normalize_roles.php
fi
elif [ "$type" = "suse" ]
then