Use the ip address and change the install message.

This commit is contained in:
FusionPBX 2017-01-15 00:05:48 -07:00 committed by GitHub
parent 968dcbc0d0
commit 4ffff17791
1 changed files with 13 additions and 5 deletions

View File

@ -30,9 +30,16 @@ sed -i /etc/fusionpbx/config.php -e s:"{database_password}:$database_password:"
#add the database schema #add the database schema
cd /var/www/fusionpbx && php /var/www/fusionpbx/core/upgrade/upgrade_schema.php > /dev/null 2>&1 cd /var/www/fusionpbx && php /var/www/fusionpbx/core/upgrade/upgrade_schema.php > /dev/null 2>&1
#add the domain #get the server hostname
domain_name=$(hostname -f) #domain_name=$(hostname -f)
#get the ip address
domain_name=$(hostname -I | cut -d ' ' -f1)
#get a domain_uuid
domain_uuid=$(/usr/bin/php /var/www/fusionpbx/resources/uuid.php); domain_uuid=$(/usr/bin/php /var/www/fusionpbx/resources/uuid.php);
#add the domain name
psql --host=$database_host --port=$database_port --username=$database_username -c "insert into v_domains (domain_uuid, domain_name, domain_enabled) values('$domain_uuid', '$domain_name', 'true');" psql --host=$database_host --port=$database_port --username=$database_username -c "insert into v_domains (domain_uuid, domain_name, domain_enabled) values('$domain_uuid', '$domain_name', 'true');"
#app defaults #app defaults
@ -65,12 +72,13 @@ echo ""
verbose "Installation has completed." verbose "Installation has completed."
echo "" echo ""
echo " Use a web browser to login." echo " Use a web browser to login."
echo " location: https://$domain_name" echo " domain name: https://$domain_name"
echo " username: $user_name" echo " username: $user_name"
echo " password: $user_password" echo " password: $user_password"
echo "" echo ""
echo " If your server hostname is not a fully qualified domain name"; echo " The domain name in the browser is used by default as part of the authentication."
echo " Then login with your ip address and $user_name@$domain_name"; echo " If you need to login to a different domain then use username@domain."
echo " username: $user_name@$domain_name";
echo "" echo ""
echo " For additional information use the following links."; echo " For additional information use the following links.";
echo " https://www.fusionpbx.com" echo " https://www.fusionpbx.com"