}
foreach ($apacheconffiles as $apacheconffile) {
- echo('Setting GForge Include For Apache...');
+ echo('Setting FusionForge Include For Apache...');
system("grep \"^Include /etc/gforge/httpd.conf\" $apacheconffile > /dev/null", $ret);
if ($ret == 1) {
system("echo \"Include /etc/gforge/httpd.conf\" >> $apacheconffile");
die("ERROR: Could not find Postgresql init script\n");
}
-// # Fedora9 (an maybe newer) requires running initdb
-// if ($pgservice == '/etc/init.d/postgresql') {
-// if (!is_dir("/var/lib/pgsql/data/base")) {
-// run("service postgresql initdb");
-// }
-// }
+# Fedora9 (an maybe newer) requires running initdb
+if ($pgservice == '/etc/init.d/postgresql') {
+ if (!is_dir("/var/lib/pgsql/data/base")) {
+ run("service postgresql initdb");
+ }
+}
// Might fail if it's already running, so we'll ingnore the result
run("$pgservice start", true);