diff --git a/centos/resources/finish.sh b/centos/resources/finish.sh index 29ca91d..292ad48 100755 --- a/centos/resources/finish.sh +++ b/centos/resources/finish.sh @@ -23,7 +23,8 @@ sudo -u postgres /usr/bin/psql -c "ALTER USER fusionpbx WITH PASSWORD '$database sudo -u postgres /usr/bin/psql -c "ALTER USER freeswitch WITH PASSWORD '$database_password';" #add the config.conf -cp fusionpbx/config.conf /etc/fusionpbx +mkdir -p /etc/fusionpbx/ +cp fusionpbx/config.conf /etc/fusionpbx/ sed -i /etc/fusionpbx/config.conf -e s:"{database_host}:$database_host:" sed -i /etc/fusionpbx/config.conf -e s:"{database_name}:$database_name:" sed -i /etc/fusionpbx/config.conf -e s:"{database_username}:$database_username:" diff --git a/centos/resources/switch/conf-copy.sh b/centos/resources/switch/conf-copy.sh index 365650e..8cb546a 100755 --- a/centos/resources/switch/conf-copy.sh +++ b/centos/resources/switch/conf-copy.sh @@ -3,4 +3,4 @@ #copy the conf directory mv /etc/freeswitch /etc/freeswitch.orig mkdir /etc/freeswitch -cp -R /var/www/fusionpbx/resources/templates/conf/* /etc/freeswitch +cp -R /var/www/fusionpbx/app/switch/resources/conf/* /etc/freeswitch diff --git a/centos/resources/switch/package-release.sh b/centos/resources/switch/package-release.sh index 99d09c0..290ad47 100755 --- a/centos/resources/switch/package-release.sh +++ b/centos/resources/switch/package-release.sh @@ -14,7 +14,13 @@ verbose "Installing FreeSWITCH" yum -y install memcached curl gdb #install freeswitch packages -yum install -y https://files.freeswitch.org/repo/yum/centos-release/freeswitch-release-repo-0-1.noarch.rpm epel-release +#yum install -y https://files.freeswitch.org/repo/yum/centos-release/freeswitch-release-repo-0-1.noarch.rpm epel-release +echo "signalwire" > /etc/yum/vars/signalwireusername +echo 'please get your token from this site: https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Installation/HOWTO-Create-a-SignalWire-Personal-Access-Token_67240087/#attachments' +echo "please enter your token:" +read token +echo $token > /etc/yum/vars/signalwiretoken +yum install -y https://$(< /etc/yum/vars/signalwireusername):$(< /etc/yum/vars/signalwiretoken)@freeswitch.signalwire.com/repo/yum/centos-release/freeswitch-release-repo-0-1.noarch.rpm epel-release yum install -y freeswitch-config-vanilla freeswitch-lang-* freeswitch-sounds-* freeswitch-lua freeswitch-xml-cdr #remove the music package to protect music on hold from package updates