5 # Post installation fixes.
6 perl -spi -e "s/^#ServerName (.*):80/ServerName $hostname:80/" /etc/httpd/conf/httpd.conf
8 perl -spi -e "s/^Include/#Include/" /etc/gforge/httpd.conf.d/ssl-on.inc
11 chkconfig postgresql on
12 chkconfig iptables off
16 msg="IMPORTANT: Service iptables (firewall) disabled, please reconfigure after"
18 cp $scriptdir/packaging/cron.d/cron.fusionforge /etc/cron.d
19 cp $scriptdir/plugins/*/etc/cron.d/* /etc/cron.d/
27 # Post installation fixes.
28 #perl -spi -e "s/^#ServerName (.*):80/ServerName $hostname:80/" /etc/apache2/httpd.conf
30 chkconfig -s apache2 on
31 chkconfig -s postgresql on
33 # Apache settings: modules
34 for m in dav dav_svn authz_svn ssl; do
38 echo "Virtual hosts for ${hostname}:"
39 httpd2 -S -DSSL 2>&1 | grep ${hostname}
44 msg="IMPORTANT: Service SuSEfirewall2 stopped, please reconfigure after"
46 cp $scriptdir/packaging/cron.d/cron.fusionforge /etc/cron.d
47 cp $scriptdir/plugins/*/etc/cron.d/* /etc/cron.d/
51 install5_post_debian()
53 if [ ! -e /etc/gforge/ssl-cert.pem ] || [ ! -e /etc/gforge/ssl-cert.key ] ; then
54 # Uh-oh, no SSL cert, let's make sure at least a dummy one exists.
55 if [ ! -e /etc/ssl/certs/ssl-cert-snakeoil.pem ] || [ ! -e /etc/ssl/private/ssl-cert-snakeoil.key ] ; then
56 # What, not even the snakeoil cert is there? Let's generate it
57 make-ssl-cert generate-default-snakeoil
59 # Right. At this point, it should be safe to set the symlinks.
60 ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/gforge/ssl-cert.pem
61 ln -s /etc/ssl/private/ssl-cert-snakeoil.key /etc/gforge/ssl-cert.key
64 for i in secrets.inc vhost-list.inc vhost-main.inc vhost-projects.inc ; do
65 if [ ! -e /etc/gforge/httpd.conf.d/$i ] ; then
66 cp /opt/gforge/src/etc/httpd.conf.d-opt/$i /etc/gforge/httpd.conf.d/$i
67 if [ $i = "secrets.inc" ] ; then
68 chmod 700 /etc/gforge/httpd.conf.d/$i
70 PATH=/opt/gforge/src/utils:$PATH manage-apache-config.sh install
71 mv /etc/gforge/httpd.conf.d/$i.generated /etc/gforge/httpd.conf.d/$i
75 # Apache settings: modules
76 for m in dav dav_svn authz_svn ssl; do
81 service apache2 restart
84 install5_post_ubuntu()
89 install5_post_unknown()