Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Guilherme Filippo
ISPConfig 3
Commits
409a6679
Commit
409a6679
authored
Mar 02, 2009
by
tbrehm
Browse files
Fixed: symlinks not updated when a site is moved.
parent
99cb22d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
409a6679
...
...
@@ -332,8 +332,8 @@ class apache2_plugin {
$tmp_symlink
=
str_replace
(
"[website_domain]"
,
$data
[
"old"
][
"domain"
],
$tmp_symlink
);
// Remove trailing slash
if
(
substr
(
$tmp_symlink
,
-
1
,
1
)
==
'/'
)
$tmp_symlink
=
substr
(
$tmp_symlink
,
0
,
-
1
);
//
c
re
at
e the symlinks, if not exist
if
(
!
is_link
(
$tmp_symlink
))
{
// re
mov
e the symlinks, if not exist
if
(
is_link
(
$tmp_symlink
))
{
exec
(
"rm -f "
.
escapeshellcmd
(
$tmp_symlink
));
$app
->
log
(
"Removed Symlink: rm -f "
.
$tmp_symlink
,
LOGLEVEL_DEBUG
);
}
...
...
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