Check for existence of apache init script before running.

This commit is contained in:
tonnesen 2002-06-22 05:43:53 +00:00
parent f02ede974a
commit caa92cdb1c
1 changed files with 7 additions and 1 deletions

View File

@ -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";