FreeBSD add interface name
This commit is contained in:
parent
e8f6d399ad
commit
86cebf804d
|
|
@ -39,9 +39,11 @@ cd /usr/local/www/fusionpbx && /usr/local/bin/php /usr/local/www/fusionpbx/core/
|
||||||
#domain_name=$(hostname -f)
|
#domain_name=$(hostname -f)
|
||||||
|
|
||||||
#get the primary interface name
|
#get the primary interface name
|
||||||
interface_name=$(ifconfig -l | awk '{print $1}')
|
if [ .$interface_name = .'auto' ]; then
|
||||||
if [ .$interface_name = .'lo0' ]; then
|
interface_name=$(ifconfig -l | awk '{print $1}')
|
||||||
interface_name=$(ifconfig -l | awk '{print $2}')
|
if [ .$interface_name = .'lo0' ]; then
|
||||||
|
interface_name=$(ifconfig -l | awk '{print $2}')
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#get the ip address
|
#get the ip address
|
||||||
|
|
@ -120,15 +122,15 @@ echo " The domain name in the browser is used by default as part of the authen
|
||||||
echo " If you need to login to a different domain then use username@domain."
|
echo " If you need to login to a different domain then use username@domain."
|
||||||
echo " username: $user_name@$domain_name";
|
echo " username: $user_name@$domain_name";
|
||||||
echo ""
|
echo ""
|
||||||
echo " Official FusionPBX Training"
|
#echo " Official FusionPBX Training"
|
||||||
echo " Fastest way to learn FusionPBX. For more information https://www.fusionpbx.com."
|
#echo " Fastest way to learn FusionPBX. For more information https://www.fusionpbx.com."
|
||||||
echo " Available online and in person. Includes documentation and recording."
|
#echo " Available online and in person. Includes documentation and recording."
|
||||||
echo ""
|
#echo ""
|
||||||
echo " Location Online"
|
#echo " Location Online"
|
||||||
echo " Admin Training 12 - 13 June 2017 (2 Days)"
|
#echo " Admin Training 12 - 13 June 2017 (2 Days)"
|
||||||
echo " Advanced Training 14 - 15 June 2017 (2 Days)"
|
#echo " Advanced Training 14 - 15 June 2017 (2 Days)"
|
||||||
#echo " Timezone: https://www.timeanddate.com/worldclock/usa/boise"
|
#echo " Timezone: https://www.timeanddate.com/worldclock/usa/boise"
|
||||||
echo ""
|
#echo ""
|
||||||
echo " Additional information."
|
echo " Additional information."
|
||||||
echo " https://fusionpbx.com/support.php"
|
echo " https://fusionpbx.com/support.php"
|
||||||
echo " https://www.fusionpbx.com"
|
echo " https://www.fusionpbx.com"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue