Browse Source

Redirect unwated errors of bc command

old-stable
Mitesh Shah 11 years ago
parent
commit
d23dc9f940
  1. 2
      usr/local/sbin/easyengine

2
usr/local/sbin/easyengine

@ -850,7 +850,7 @@ NGINXBUCKETSIZE()
if [ $? -eq 0 ]
then
NGINXCALCULATION=$(echo "l($(ls /etc/nginx/sites-enabled/ | wc -c))/l(2)+2" | bc -l)
NGINXSETBUCKET=$(echo "2^$NGINXCALCULATION" | bc -l)
NGINXSETBUCKET=$(echo "2^$NGINXCALCULATION" | bc -l 2> /dev/null)
sed -i "s/.*server_names_hash_bucket_size.*/\tserver_names_hash_bucket_size $NGINXSETBUCKET;/" /etc/nginx/nginx.conf
fi
}

Loading…
Cancel
Save