|
@@ -39,7 +39,7 @@ sed -i /etc/fusionpbx/config.conf -e s:"{database_username}:$database_username:"
|
|
sed -i /etc/fusionpbx/config.conf -e s:"{database_password}:$database_password:"
|
|
sed -i /etc/fusionpbx/config.conf -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 && /usr/bin/php /var/www/fusionpbx/core/upgrade/upgrade.php --schema
|
|
|
|
|
|
#get the server hostname
|
|
#get the server hostname
|
|
if [ .$domain_name = .'hostname' ]; then
|
|
if [ .$domain_name = .'hostname' ]; then
|
|
@@ -57,8 +57,8 @@ domain_uuid=$(/usr/bin/php /var/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');"
|
|
|
|
|
|
-#app defaults
|
|
|
|
-cd /var/www/fusionpbx && php /var/www/fusionpbx/core/upgrade/upgrade_domains.php
|
|
|
|
|
|
+#run app defaults
|
|
|
|
+cd /var/www/fusionpbx && /usr/bin/php /var/www/fusionpbx/core/upgrade/upgrade.php --defaults
|
|
|
|
|
|
#add the user
|
|
#add the user
|
|
user_uuid=$(/usr/bin/php /var/www/fusionpbx/resources/uuid.php);
|
|
user_uuid=$(/usr/bin/php /var/www/fusionpbx/resources/uuid.php);
|
|
@@ -90,8 +90,8 @@ sed -i /etc/freeswitch/autoload_configs/xml_cdr.conf.xml -e s:"{v_project_path}:
|
|
sed -i /etc/freeswitch/autoload_configs/xml_cdr.conf.xml -e s:"{v_user}:$xml_cdr_username:"
|
|
sed -i /etc/freeswitch/autoload_configs/xml_cdr.conf.xml -e s:"{v_user}:$xml_cdr_username:"
|
|
sed -i /etc/freeswitch/autoload_configs/xml_cdr.conf.xml -e s:"{v_pass}:$xml_cdr_password:"
|
|
sed -i /etc/freeswitch/autoload_configs/xml_cdr.conf.xml -e s:"{v_pass}:$xml_cdr_password:"
|
|
|
|
|
|
-#app defaults
|
|
|
|
-cd /var/www/fusionpbx && php /var/www/fusionpbx/core/upgrade/upgrade_domains.php
|
|
|
|
|
|
+#run app defaults
|
|
|
|
+cd /var/www/fusionpbx && /usr/bin/php /var/www/fusionpbx/core/upgrade/upgrade.php --defaults
|
|
|
|
|
|
#restart freeswitch
|
|
#restart freeswitch
|
|
/bin/systemctl daemon-reload
|
|
/bin/systemctl daemon-reload
|