Update finish.sh

This commit is contained in:
FusionPBX 2017-07-29 11:09:14 -06:00 committed by GitHub
parent e95e1c03a7
commit dafbcd4d4f
1 changed files with 6 additions and 2 deletions

View File

@ -34,10 +34,14 @@ sed -i /etc/fusionpbx/config.php -e s:"{database_password}:$database_password:"
cd /var/www/fusionpbx && php /var/www/fusionpbx/core/upgrade/upgrade_schema.php > /dev/null 2>&1
#get the server hostname
#domain_name=$(hostname -f)
if [ .$domain_name = .'hostname' ]; then
domain_name=$(hostname -f)
fi
#get the ip address
domain_name=$(hostname -I | cut -d ' ' -f1)
if [ .$domain_name = .'ip_address' ]; then
domain_name=$(hostname -I | cut -d ' ' -f1)
fi
#get a domain_uuid
domain_uuid=$(/usr/bin/php /var/www/fusionpbx/resources/uuid.php);