Skip to content

Commit dae3b41

Browse files
committed
Fixed a warning in cron log on non web servers.
1 parent 4eb8d2a commit dae3b41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/cron_daily.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ function setConfigVar( $filename, $varName, $varValue ) {
257257
// Make the web logfiles directories world readable to enable ftp access
258258
#######################################################################################################
259259

260-
exec('chmod +r /var/log/ispconfig/httpd/*');
260+
if(is_dir('/var/log/ispconfig/httpd')) exec('chmod +r /var/log/ispconfig/httpd/*');
261261

262262
#######################################################################################################
263263
// Manage and compress web logfiles and create traffic statistics

0 commit comments

Comments
 (0)