File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 274274 $ restart_web = 'yes ' ;
275275 $ restart_proxy = 'yes ' ;
276276 }
277- else {
278- // Delete SSL certificate
279- if (( $ v_ssl == 'yes ' ) && (empty ($ _POST ['v_ssl ' ])) && (empty ($ _SESSION ['error_msg ' ]))) {
280- exec (VESTA_CMD ."v-list-web-domain " .$ user ." " .$ v_domain ." json " , $ output , $ return_var );
281- $ data = json_decode (implode ('' , $ output ), true );
282- exec (VESTA_CMD ."v-add-letsencrypt-domain " .$ user ." " .$ v_domain ." ' " .$ data ['ALIAS ' ]."' 'no' " , $ output , $ return_var );
283- check_return_code ($ return_var ,$ output );
284- unset($ output );
285- $ v_ssl = 'no ' ;
286- $ restart_web = 'yes ' ;
287- $ restart_proxy = 'yes ' ;
288- }
289- }
277+
278+ // Enable Lets Encrypt support
290279 if (( $ v_letsencrypt == 'no ' || empty ( $ v_letsencrypt )) && (!empty ($ _POST ['v_letsencrypt ' ])) && empty ($ _SESSION ['error_msg ' ])) {
291280 exec (VESTA_CMD ."v-list-web-domain " .$ user ." " .$ v_domain ." json " , $ output , $ return_var );
292281 $ data = json_decode (implode ('' , $ output ), true );
You can’t perform that action at this time.
0 commit comments