Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tommaso Perondi
ISPConfig 3
Commits
3b764bb8
Commit
3b764bb8
authored
Oct 25, 2016
by
Marius Burkard
Browse files
- fixed typo in renaming old cert files
parent
22509bbb
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
3b764bb8
...
...
@@ -1259,7 +1259,7 @@ class apache2_plugin {
$date
=
date
(
"YmdHis"
);
//* TODO: check if is a symlink, if target same keep it, either remove it
if
(
is_file
(
$key_file
))
{
$app
->
system
->
copy
(
$key_file
,
$key_file
.
'.old'
.
$date
);
$app
->
system
->
copy
(
$key_file
,
$key_file
.
'.old
.
'
.
$date
);
$app
->
system
->
chmod
(
$key_file
.
'.old.'
.
$date
,
0400
);
$app
->
system
->
unlink
(
$key_file
);
}
...
...
server/plugins-available/nginx_plugin.inc.php
View file @
3b764bb8
...
...
@@ -1336,7 +1336,7 @@ class nginx_plugin {
$date
=
date
(
"YmdHis"
);
//* TODO: check if is a symlink, if target same keep it, either remove it
if
(
is_file
(
$key_file
))
{
$app
->
system
->
copy
(
$key_file
,
$key_file
.
'.old'
.
$date
);
$app
->
system
->
copy
(
$key_file
,
$key_file
.
'.old
.
'
.
$date
);
$app
->
system
->
chmod
(
$key_file
.
'.old.'
.
$date
,
0400
);
$app
->
system
->
unlink
(
$key_file
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment