Skip to content

Commit 2c6534d

Browse files
author
Marius Burkard
committed
Merge branch '6281-acme-folder-is-not-saved-in-the-backup-during-ispconfig-update' into 'develop'
Resolve "Acme folder is not saved in the backup during ISPConfig update" Closes #6281 See merge request ispconfig/ispconfig3!1569
2 parents aebdcd4 + 5ee1a8c commit 2c6534d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

install/update.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,19 @@
216216
exec("tar pcfz $backup_path/etc.tar.gz /etc 2> /dev/null", $out, $returnvar);
217217
if($returnvar != 0) die("Backup failed. We stop here...\n");
218218

219+
if (is_dir('/root/.acme.sh')) {
220+
swriteln('Creating backup of "/root/.acme.sh" directory...');
221+
exec("tar pcfz $backup_path/acme.sh.tar.gz /root/.acme.sh 2> /dev/null", $out, $returnvar);
222+
if($returnvar != 0) die("Backup failed. We stop here...\n");
223+
}
224+
225+
if (is_dir('/etc/letsencrypt')) {
226+
swriteln('Creating backup of "/etc/letsencrypt" directory...');
227+
exec("tar pcfz $backup_path/certbot.tar.gz /etc/letsencrypt 2> /dev/null", $out, $returnvar);
228+
if($returnvar != 0) die("Backup failed. We stop here...\n");
229+
}
230+
231+
219232
exec("chown root:root $backup_path/*.tar.gz");
220233
exec("chmod 700 $backup_path/*.tar.gz");
221234
}

0 commit comments

Comments
 (0)