mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
Cut blank lines when counting domains for IP addresses to prevent reporting 1 for an IP that has zero.
This commit is contained in:
parent
a719b6d4d4
commit
bb145d234a
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ for ip in $ip_list; do
|
|||
|
||||
# Calculate usage
|
||||
ip_usage=$(grep -H $ip $VESTA/data/users/*/web.conf)
|
||||
web_domains=$(echo "$ip_usage"| wc -l)
|
||||
web_domains=$(echo "$ip_usage" | sed '/^$/' | wc -l)
|
||||
sys_users=$(echo "$ip_usage" | cut -f7 -d/ | sort -u |\
|
||||
tr '\n' ',' | sed "s/,$//g")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue