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
Mattia Rizzolo
ISPConfig 3
Commits
e240dde9
Commit
e240dde9
authored
Mar 24, 2022
by
Jesse Norell
Browse files
Avoid symlink() error if acme conf already exists as a file.
parent
62204fa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
e240dde9
...
...
@@ -2875,7 +2875,7 @@ class installer_base {
if
(
@
is_link
(
$vhost_conf_enabled_dir
.
'/'
.
$use_symlink
))
{
unlink
(
$vhost_conf_enabled_dir
.
'/'
.
$use_symlink
);
}
if
(
!@
is_
link
(
$vhost_conf_enabled_dir
.
'/'
.
$use_symlink
))
{
if
(
!@
is_
file
(
$vhost_conf_enabled_dir
.
'/'
.
$use_symlink
))
{
symlink
(
$vhost_conf_dir
.
'/'
.
$use_name
,
$vhost_conf_enabled_dir
.
'/'
.
$use_symlink
);
}
}
...
...
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