Changed response check on restarting apache web server.
This commit is contained in:
parent
dd0289e9c7
commit
ff666ea605
|
|
@ -687,7 +687,7 @@ Would you like to restart your webserver now? (Y/[N]):
|
|||
my $restart = <STDIN>;
|
||||
chomp $restart;
|
||||
|
||||
if ($answer eq "Y" || $answer eq "y") {
|
||||
if ($answer=~/^y/i) {
|
||||
# Need to support other init structures here?
|
||||
if (-e "/etc/rc.d/init.d/httpd") {
|
||||
system('/etc/rc.d/init.d/httpd restart');
|
||||
|
|
|
|||
Loading…
Reference in New Issue