File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -422,6 +422,15 @@ public function configure_apache()
422422 }
423423 unset($ content );
424424
425+ //* Copy the ISPConfig configuration include
426+ $ vhost_conf_dir = $ conf ['apache ' ]['vhost_conf_dir ' ];
427+ $ vhost_conf_enabled_dir = $ conf ['apache ' ]['vhost_conf_enabled_dir ' ];
428+
429+ copy ('tpl/apache_ispconfig.conf.master ' ,$ vhost_conf_dir .'/ispconfig.conf ' );
430+ if (!@is_link ($ vhost_conf_enabled_dir ."/000-ispconfig.conf " )) {
431+ exec ("ln -s " .$ vhost_conf_dir ."/ispconfig.conf " .$ vhost_conf_enabled_dir ."/000-ispconfig.conf " );
432+ }
433+
425434 }
426435
427436 public function configure_firewall ()
Original file line number Diff line number Diff line change @@ -430,6 +430,15 @@ public function configure_apache()
430430 }
431431 unset($ content );
432432
433+ //* Copy the ISPConfig configuration include
434+ $ vhost_conf_dir = $ conf ['apache ' ]['vhost_conf_dir ' ];
435+ $ vhost_conf_enabled_dir = $ conf ['apache ' ]['vhost_conf_enabled_dir ' ];
436+
437+ copy ('tpl/apache_ispconfig.conf.master ' ,$ vhost_conf_dir .'/ispconfig.conf ' );
438+ if (!@is_link ($ vhost_conf_enabled_dir ."/000-ispconfig.conf " )) {
439+ exec ("ln -s " .$ vhost_conf_dir ."/ispconfig.conf " .$ vhost_conf_enabled_dir ."/000-ispconfig.conf " );
440+ }
441+
433442 }
434443
435444 public function configure_firewall ()
You can’t perform that action at this time.
0 commit comments