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
Dirk Dankhoff
ISPConfig 3
Commits
d2f8d345
Commit
d2f8d345
authored
Sep 06, 2011
by
tbrehm
Browse files
Fixed: FS#1604 - Awstats is always in english
parent
2b81b8f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/cron_daily.php
View file @
d2f8d345
...
...
@@ -201,7 +201,7 @@ HostAliases="www.'.$domain.' localhost 127.0.0.1"'.$aliasdomain;
symlink
(
$logfile
,
'/var/log/ispconfig/httpd/'
.
$domain
.
'/yesterday-access.log'
);
// awstats_buildstaticpages.pl -update -config=mydomain.com -lang=en -dir=/var/www/domain.com/web/stats -awstatsprog=/path/to/awstats.pl
$command
=
"
$awstats_buildstaticpages_pl
-update -config='
$domain
' -lang=
en
-dir='
$statsdir
' -awstatsprog='
$awstats_pl
'"
;
$command
=
"
$awstats_buildstaticpages_pl
-update -config='
$domain
' -lang=
"
.
$conf
[
'language'
]
.
"
-dir='
$statsdir
' -awstatsprog='
$awstats_pl
'"
;
if
(
$awstats_pl
!=
''
&&
$awstats_buildstaticpages_pl
!=
''
&&
fileowner
(
$awstats_pl
)
==
0
&&
fileowner
(
$awstats_buildstaticpages_pl
)
==
0
)
{
exec
(
$command
);
...
...
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