Skip to content

Commit d78fc43

Browse files
author
Till Brehm
committed
Update installer_base.lib.php
1 parent 1688fa2 commit d78fc43

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2792,6 +2792,7 @@ public function make_acme_vhost($server = 'apache') {
27922792
$server_name = exec('hostname -f');
27932793
}
27942794

2795+
$reload_web_server = false;
27952796
$use_template = 'apache_acme.conf.master';
27962797
$use_symlink = '999-acme.conf';
27972798
$use_name = 'acme.conf';
@@ -2823,10 +2824,18 @@ public function make_acme_vhost($server = 'apache') {
28232824

28242825
if(@is_link($vhost_conf_enabled_dir.'/' . $use_symlink)) {
28252826
unlink($vhost_conf_enabled_dir.'/' . $use_symlink);
2827+
$reload_web_server = true;
28262828
}
28272829
if(!@is_link($vhost_conf_enabled_dir.'/' . $use_symlink)) {
28282830
symlink($vhost_conf_dir.'/' . $use_name, $vhost_conf_enabled_dir.'/' . $use_symlink);
28292831
}
2832+
2833+
if($reload_web_server == true) {
2834+
if($conf['apache']['installed'] == true && $conf['apache']['init_script'] != '') system($this->getinitcommand($conf['apache']['init_script'], 'reload'));
2835+
//* Reload is enough for nginx
2836+
if($conf['nginx']['installed'] == true && $conf['nginx']['php_fpm_init_script'] != '') system($this->getinitcommand($conf['nginx']['php_fpm_init_script'], 'reload'));
2837+
}
2838+
28302839
}
28312840

28322841
public function make_ispconfig_ssl_cert() {

0 commit comments

Comments
 (0)