Skip to content

Commit a80ceba

Browse files
committed
Improve pattern match to not match things like webmail.example.com
Such a website symlink would trigger warnings such as: Undefined array key "webmail.example.com" in /usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_hd_quota.inc.php on line 124
1 parent 05defde commit a80ceba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/cron.d/100-monitor_hd_quota.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function onRunJob() {
7373
//* No Quota on this System ...
7474

7575
//** Fetch the data for all users
76-
$dfData = shell_exec('du -s /var/www/clients/client*/we*');
76+
$dfData = shell_exec('du -s /var/www/clients/client*/web[0-9]*');
7777

7878
//* split into array
7979
$df = explode("\n", $dfData);

0 commit comments

Comments
 (0)