File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 597597 }
598598}
599599
600+ // update acme.sh if installed
601+ $ inst ->update_acme ();
602+
600603if ($ conf ['services ' ]['web ' ] == true ) {
601604 //** Configure apps vhost
602605 swriteln ('Configuring Apps vhost ' );
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ private function update_acme() {
5656 $ acme = reset ($ acme );
5757 $ val = 0 ;
5858
59- if ($ acme ) {
59+ if ($ acme && is_executable ( $ acme ) ) {
6060 $ cmd = $ acme . ' --upgrade --auto-upgrade ; ' . $ acme . ' --set-default-ca --server letsencrypt ' ;
6161 $ ret = null ;
6262 $ val = 0 ;
@@ -2932,17 +2932,15 @@ public function make_ispconfig_ssl_cert() {
29322932 $ acme = reset ($ acme );
29332933 if ($ acme && is_executable ($ acme )) {
29342934 swriteln ('Installed acme.sh and using it for certificate creation during install. ' );
2935+
2936+ // we do this even on install to enable automatic updates
2937+ $ this ->update_acme ();
29352938 } else {
29362939 swriteln ('Failed installing acme.sh. Will not be able to issue certificate during install. ' );
29372940 }
29382941 }
29392942 }
29402943
2941- if ($ acme && is_executable ($ acme )) {
2942- // we do this even on install to enable automatic updates
2943- $ this ->update_acme ();
2944- }
2945-
29462944 $ restore_conf_symlink = false ;
29472945
29482946 // we only need this for apache, so use fixed conf index
Original file line number Diff line number Diff line change 566566 }
567567}
568568
569+ // update acme.sh if installed
570+ $ inst ->update_acme ();
571+
569572$ inst ->install_ispconfig ();
570573
571574// Cleanup
You can’t perform that action at this time.
0 commit comments