Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
0257dd73
Commit
0257dd73
authored
Aug 24, 2012
by
mcramer
Browse files
Bugfix again: awstats for vhost subdomains (typing error)
parent
5d38524a
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/cron_daily.php
View file @
0257dd73
...
...
@@ -238,7 +238,7 @@ HostAliases="www.'.$domain.' localhost 127.0.0.1'.$aliasdomain.'"';
exec
(
$command
);
if
(
is_file
(
$rec
[
'document_root'
]
.
'/'
.
$web_folder
.
'/stats/index.html'
))
unlink
(
$rec
[
'document_root'
]
.
'/'
.
$web_folder
.
'/stats/index.html'
);
rename
(
$rec
[
'document_root'
]
.
'/'
.
$web_folder
.
'/stats/awstats.'
.
$domain
.
'.html'
,
$rec
[
'document_root'
]
.
'/'
.
$web_folder
.
'/stats/awsindex.html'
);
if
(
!
is_file
(
$rec
[
'document_root'
]
.
"/
'
.
$web_folder
.
'
/stats/index.php"
))
copy
(
"/usr/local/ispconfig/server/conf/awstats_index.php.master"
,
$rec
[
'document_root'
]
.
"/"
.
$web_folder
.
"/stats/index.php"
);
if
(
!
is_file
(
$rec
[
'document_root'
]
.
"/
"
.
$web_folder
.
"
/stats/index.php"
))
copy
(
"/usr/local/ispconfig/server/conf/awstats_index.php.master"
,
$rec
[
'document_root'
]
.
"/"
.
$web_folder
.
"/stats/index.php"
);
$app
->
log
(
'Created awstats statistics with command: '
.
$command
,
LOGLEVEL_DEBUG
);
}
else
{
...
...
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