From da25572a388d879bece528d5cc6e9071adfde2f9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 9 Feb 2019 10:50:00 -0700 Subject: [PATCH] Update finish.sh --- centos/resources/finish.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centos/resources/finish.sh b/centos/resources/finish.sh index ea858b6..0c48017 100755 --- a/centos/resources/finish.sh +++ b/centos/resources/finish.sh @@ -64,9 +64,9 @@ group_uuid=$(psql --host=$database_host --port=$database_port --username=$databa group_uuid=$(echo $group_uuid | sed 's/^[[:blank:]]*//;s/[[:blank:]]*$//') #add the user to the group -group_user_uuid=$(/usr/bin/php /var/www/fusionpbx/resources/uuid.php); +user_group_uuid=$(/usr/bin/php /var/www/fusionpbx/resources/uuid.php); 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_user_groups (user_group_uuid, domain_uuid, group_name, group_uuid, user_uuid) values('$group_user_uuid', '$domain_uuid', '$group_name', '$group_uuid', '$user_uuid');" #update the php configuration sed -i 's/user nginx/user freeswitch daemon/g' /etc/nginx/nginx.conf