Skip to content

Commit ae0a481

Browse files
Marius BurkardThom
authored andcommitted
Apply 1 suggestion(s) to 1 file(s)
1 parent e1ac2b0 commit ae0a481

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install/update.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@
220220
swriteln('Creating backup of "/root/.acme.sh" directory...');
221221
exec("tar pcfz $backup_path/acme.sh.tar.gz /root/.acme.sh 2> /dev/null", $out, $returnvar);
222222
if($returnvar != 0) die("Backup failed. We stop here...\n");
223-
} elseif (is_dir('/etc/letsencrypt')) {
223+
}
224+
225+
if (is_dir('/etc/letsencrypt')) {
224226
swriteln('Creating backup of "/etc/letsencrypt" directory...');
225227
exec("tar pcfz $backup_path/letsencrypt.tar.gz /etc/letsencrypt 2> /dev/null", $out, $returnvar);
226228
if($returnvar != 0) die("Backup failed. We stop here...\n");

0 commit comments

Comments
 (0)