From dafbcd4d4f660ca1edcbc55e52c088732655eb41 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 29 Jul 2017 11:09:14 -0600 Subject: [PATCH] Update finish.sh --- debian/resources/finish.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/resources/finish.sh b/debian/resources/finish.sh index 93b1068..0e3b94d 100755 --- a/debian/resources/finish.sh +++ b/debian/resources/finish.sh @@ -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);