3 # Simple wrapper for FusionForge installation
5 # Usage: ./install.sh <hostname>
7 # This will install all the fusionforge code in /opt/gforge
8 # Configuration is stored in /etc/gforge
10 # Currently supported:
11 # * Red Hat 4 / CentOS 4
12 # * Red Hat 5 / CentOS 5
14 # Author: aljeux <aljeux@free.fr>
18 echo 1>&2 Usage: $0 hostname
25 if [ -f "/etc/redhat-release" ]
28 distrib=`awk '{print $1}' /etc/redhat-release`
32 if [ $distrib = "CentOS" ]
36 if [ $distrib = "Red" ]
40 if [ $distrib = "Fedora" ]
46 if [ $type = "redhat" ]
49 php gforge-install-1-deps.php $deps
50 php gforge-install-2.php "$hostname" apache apache
51 php gforge-install-3-db.php
53 php /opt/gforge/db/startpoint.php 4.7
55 # Post installation fixes.
56 perl -spi -e "s/^#ServerName (.*):80/ServerName $hostname:80/" /etc/httpd/conf/httpd.conf
57 perl -spi -e 's/^LoadModule/#LoadModule/g' /etc/gforge/httpd.conf
60 chkconfig postgresql on
61 chkconfig iptables off
66 cp cron.gforge /etc/cron.d
69 echo "IMPORTANT: Service iptables (firewall) disabled, please reconfigure after";
73 echo "Only Red Hat, Fedora or CentOS are supported by this script.";
74 echo "See INSTALL for normal installation";