Update finish.sh

Fix the php path.
This commit is contained in:
FusionPBX 2017-04-01 03:59:29 -06:00 committed by GitHub
parent 8256da6157
commit a8a1d4127d
1 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ interface_name=$(ifconfig | pcregrep -M -o '^[^\t:]+:([^\n]|\n\t)*status: active
domain_name=$(ifconfig $interface_name | grep 'inet ' | awk '{print $2}') domain_name=$(ifconfig $interface_name | grep 'inet ' | awk '{print $2}')
#get a domain_uuid #get a domain_uuid
domain_uuid=$(/usr/bin/php /usr/local/www/fusionpbx/resources/uuid.php); domain_uuid=$(/usr/local/bin/php /usr/local/www/fusionpbx/resources/uuid.php);
#add the domain name #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');"
@ -51,8 +51,8 @@ psql --host=$database_host --port=$database_port --username=$database_username -
cd /usr/local/www/fusionpbx && php /usr/local/www/fusionpbx/core/upgrade/upgrade_domains.php cd /usr/local/www/fusionpbx && php /usr/local/www/fusionpbx/core/upgrade/upgrade_domains.php
#add the user #add the user
user_uuid=$(/usr/bin/php /usr/local/www/fusionpbx/resources/uuid.php); user_uuid=$(/usr/local/bin/php /usr/local/www/fusionpbx/resources/uuid.php);
user_salt=$(/usr/bin/php /usr/local/www/fusionpbx/resources/uuid.php); user_salt=$(/usr/local/bin/php /usr/local/www/fusionpbx/resources/uuid.php);
user_name=$system_username user_name=$system_username
if [ .$system_password = .'random' ]; then if [ .$system_password = .'random' ]; then
user_password=$(cat /dev/random | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c 20) user_password=$(cat /dev/random | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c 20)
@ -67,7 +67,7 @@ group_uuid=$(psql --host=$database_host --port=$database_port --username=$databa
group_uuid=$(echo $group_uuid | sed 's/^[[:blank:]]*//;s/[[:blank:]]*$//') group_uuid=$(echo $group_uuid | sed 's/^[[:blank:]]*//;s/[[:blank:]]*$//')
#add the user to the group #add the user to the group
group_user_uuid=$(/usr/bin/php /usr/local/www/fusionpbx/resources/uuid.php); group_user_uuid=$(/usr/local/bin/php /usr/local/www/fusionpbx/resources/uuid.php);
group_name=superadmin group_name=superadmin
psql --host=$database_host --port=$database_port --username=$database_username -c "insert into v_group_users (group_user_uuid, domain_uuid, group_name, group_uuid, user_uuid) values('$group_user_uuid', '$domain_uuid', '$group_name', '$group_uuid', '$user_uuid');" psql --host=$database_host --port=$database_port --username=$database_username -c "insert into v_group_users (group_user_uuid, domain_uuid, group_name, group_uuid, user_uuid) values('$group_user_uuid', '$domain_uuid', '$group_name', '$group_uuid', '$user_uuid');"