Skip to content

Commit 3b764bb

Browse files
author
Marius Burkard
committed
- fixed typo in renaming old cert files
1 parent 22509bb commit 3b764bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ function update($event_name, $data) {
12591259
$date = date("YmdHis");
12601260
//* TODO: check if is a symlink, if target same keep it, either remove it
12611261
if(is_file($key_file)) {
1262-
$app->system->copy($key_file, $key_file.'.old'.$date);
1262+
$app->system->copy($key_file, $key_file.'.old.'.$date);
12631263
$app->system->chmod($key_file.'.old.'.$date, 0400);
12641264
$app->system->unlink($key_file);
12651265
}

server/plugins-available/nginx_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ function update($event_name, $data) {
13361336
$date = date("YmdHis");
13371337
//* TODO: check if is a symlink, if target same keep it, either remove it
13381338
if(is_file($key_file)) {
1339-
$app->system->copy($key_file, $key_file.'.old'.$date);
1339+
$app->system->copy($key_file, $key_file.'.old.'.$date);
13401340
$app->system->chmod($key_file.'.old.'.$date, 0400);
13411341
$app->system->unlink($key_file);
13421342
}

0 commit comments

Comments
 (0)