File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ function ssl($event_name, $data) {
264264 if ($ data ["new " ]["type " ] != "vhost " && $ data ["new " ]["type " ] != "vhostsubdomain " && $ data ["new " ]["type " ] != "vhostalias " ) return ;
265265
266266 // if(!is_dir($data['new']['document_root'].'/ssl')) exec('mkdir -p '.$data['new']['document_root'].'/ssl');
267- if (!is_dir ($ data ['new ' ]['document_root ' ].'/ssl ' )) $ app ->system ->mkdirpath ($ data ['new ' ]['document_root ' ].'/ssl ' );
267+ if (!is_dir ($ data ['new ' ]['document_root ' ].'/ssl ' ) && ! is_dir ( $ data [ ' old ' ][ ' document_root ' ]. ' /ssl ' ) ) $ app ->system ->mkdirpath ($ data ['new ' ]['document_root ' ].'/ssl ' );
268268
269269 $ ssl_dir = $ data ['new ' ]['document_root ' ].'/ssl ' ;
270270 $ domain = ($ data ['new ' ]['ssl_domain ' ] != '' ) ? $ data ['new ' ]['ssl_domain ' ] : $ data ['new ' ]['domain ' ];
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ function ssl($event_name, $data) {
106106 if ($ data ["new " ]["type " ] != "vhost " && $ data ["new " ]["type " ] != "vhostsubdomain " && $ data ["new " ]["type " ] != "vhostalias " ) return ;
107107
108108 // if(!is_dir($data['new']['document_root'].'/ssl')) exec('mkdir -p '.$data['new']['document_root'].'/ssl');
109- if (!is_dir ($ data ['new ' ]['document_root ' ].'/ssl ' )) $ app ->system ->mkdirpath ($ data ['new ' ]['document_root ' ].'/ssl ' );
109+ if (!is_dir ($ data ['new ' ]['document_root ' ].'/ssl ' ) && ! is_dir ( $ data [ ' old ' ][ ' document_root ' ]. ' /ssl ' ) ) $ app ->system ->mkdirpath ($ data ['new ' ]['document_root ' ].'/ssl ' );
110110
111111 $ ssl_dir = $ data ['new ' ]['document_root ' ].'/ssl ' ;
112112 $ domain = ($ data ['new ' ]['ssl_domain ' ] != '' ) ? $ data ['new ' ]['ssl_domain ' ] : $ data ['new ' ]['domain ' ];
You can’t perform that action at this time.
0 commit comments