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
Zvonimir
ISPConfig 3
Commits
a89eb2fd
Commit
a89eb2fd
authored
Feb 14, 2009
by
tbrehm
Browse files
Fixed moving of site when the client is changed.
parent
d053cb07
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
a89eb2fd
...
...
@@ -269,6 +269,11 @@ class apache2_plugin {
exec
(
'mv '
.
$data
[
"old"
][
"document_root"
]
.
' '
.
$new_dir
);
$app
->
log
(
"Moving site to new document root: "
.
'mv '
.
$data
[
"old"
][
"document_root"
]
.
' '
.
$new_dir
,
LOGLEVEL_DEBUG
);
$command
=
'usermod'
;
$command
.
=
' --home '
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
]);
$command
.
=
' '
.
escapeshellcmd
(
$data
[
"new"
][
"system_user"
]);
exec
(
$command
);
}
//print_r($data);
...
...
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