Update finish.sh

This commit is contained in:
FusionPBX 2017-04-08 16:43:41 -06:00 committed by GitHub
parent e6efe70c72
commit 233646c6cb
1 changed files with 4 additions and 1 deletions

View File

@ -35,8 +35,11 @@ cd /usr/local/www/fusionpbx && php /usr/local/www/fusionpbx/core/upgrade/upgrade
#get the server hostname #get the server hostname
#domain_name=$(hostname -f) #domain_name=$(hostname -f)
#get the interface name #get the primary interface name
interface_name=$(ifconfig -l | awk '{print $1}') interface_name=$(ifconfig -l | awk '{print $1}')
if [ .$interface_name = .'lo0' ]; then
interface_name=$(ifconfig -l | awk '{print $2}')
fi
#get the ip address #get the ip address
domain_name=$(ifconfig $interface_name | grep 'inet ' | awk '{print $2}') domain_name=$(ifconfig $interface_name | grep 'inet ' | awk '{print $2}')