From caa92cdb1c34babfe8e9f9b92bb3cf9b561e4715 Mon Sep 17 00:00:00 2001 From: tonnesen Date: Sat, 22 Jun 2002 05:43:53 +0000 Subject: [PATCH] Check for existence of apache init script before running. --- installer.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/installer.pl b/installer.pl index 27f1c3d9aa..aed303e088 100644 --- a/installer.pl +++ b/installer.pl @@ -481,7 +481,13 @@ chomp $restart; if ($answer eq "Y" || $answer eq "y") { # Need to support other init structures here? - system('/etc/rc.d/init.d/httpd restart'); + if (-e "/etc/rc.d/init.d/httpd") { + system('/etc/rc.d/init.d/httpd restart'); + } elsif (-e "/etc/init.d/apache") { + system('/etc//init.d/apache restart'); + } elsif (-e "/etc/init.d/apache-ssl") { + system('/etc/init.d/apache-ssl restart'); + } } else { print qq| print "\nCongratulations ... your Koha installation is complete!\n";