Skip to content

Commit 30c922c

Browse files
author
Marius Burkard
committed
- update for acme.sh if installed (also if not re-creating cert for ispc)
1 parent e08928d commit 30c922c

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

install/install.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,9 @@
597597
}
598598
}
599599

600+
// update acme.sh if installed
601+
$inst->update_acme();
602+
600603
if($conf['services']['web'] == true) {
601604
//** Configure apps vhost
602605
swriteln('Configuring Apps vhost');

install/lib/installer_base.lib.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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

install/update.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,9 @@
566566
}
567567
}
568568

569+
// update acme.sh if installed
570+
$inst->update_acme();
571+
569572
$inst->install_ispconfig();
570573

571574
// Cleanup

0 commit comments

Comments
 (0)