Update finish.sh

Better way to get the interface name
This commit is contained in:
FusionPBX 2017-04-08 16:30:11 -06:00 committed by GitHub
parent d33ed5f718
commit e6efe70c72
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ cd /usr/local/www/fusionpbx && php /usr/local/www/fusionpbx/core/upgrade/upgrade
#domain_name=$(hostname -f)
#get the interface name
interface_name=$(ifconfig | pcregrep -M -o '^[^\t:]+:([^\n]|\n\t)*status: active' | egrep -o -m 1 '^[^\t:]+')
interface_name=$(ifconfig -l | awk '{print $1}')
#get the ip address
domain_name=$(ifconfig $interface_name | grep 'inet ' | awk '{print $2}')