File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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 () {
You can’t perform that action at this time.
0 commit comments