File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -835,7 +835,7 @@ function is_installed($appname) {
835835
836836function get_ispconfig_port_number () {
837837 global $ conf ;
838- if ($ conf ['nginx ' ]['installed ' ] == true ) {
838+ if (is_file ( $ conf ['nginx ' ]['vhost_conf_dir ' ]. ' /ispconfig.vhost ' )) {
839839 $ ispconfig_vhost_file = $ conf ['nginx ' ]['vhost_conf_dir ' ].'/ispconfig.vhost ' ;
840840 $ regex = '/listen (\d+)/ ' ;
841841 } else {
@@ -861,7 +861,7 @@ function get_ispconfig_port_number() {
861861
862862function get_apps_vhost_port_number () {
863863 global $ conf ;
864- if ($ conf ['nginx ' ]['installed ' ] == true ) {
864+ if (is_file ( $ conf ['nginx ' ]['vhost_conf_dir ' ]. ' /apps.vhost ' )) {
865865 $ ispconfig_vhost_file = $ conf ['nginx ' ]['vhost_conf_dir ' ].'/apps.vhost ' ;
866866 $ regex = '/listen (\d+)/ ' ;
867867 } else {
You can’t perform that action at this time.
0 commit comments