diff --git a/debian/install.sh b/debian/install.sh index b97ea4d..45ed38e 100755 --- a/debian/install.sh +++ b/debian/install.sh @@ -40,15 +40,18 @@ resources/iptables.sh #sngrep resources/sngrep.sh -#FusionPBX -resources/fusionpbx.sh - #PHP resources/php.sh #NGINX web server resources/nginx.sh +#FusionPBX +resources/fusionpbx.sh + +#Optional Applications +resources/applications.sh + #FreeSWITCH resources/switch.sh diff --git a/debian/resources/applications.sh b/debian/resources/applications.sh new file mode 100644 index 0000000..1684441 --- /dev/null +++ b/debian/resources/applications.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +#move to script directory so all relative paths work +cd "$(dirname "$0")" + +#includes +. ./config.sh + +#optional applications +cd /var/www/fusionpbx/app +if [ .$application_transcribe = .'true' ]; then + git clone https://github.com/fusionpbx/fusionpbx-app-transcribe.git transcribe +fi +if [ .$application_speech = .'true' ]; then + git clone https://github.com/fusionpbx/fusionpbx-app-speech.git speech +fi +if [ .$application_device_logs = .'true' ]; then + git clone https://github.com/fusionpbx/fusionpbx-app-device_logs.git device_logs +fi +if [ .$application_dialplan_tools = .'true' ]; then + git clone https://github.com/fusionpbx/fusionpbx-app-dialplan_tools.git dialplan_tools +fi +if [ .$application_edit = .'true' ]; then + git clone https://github.com/fusionpbx/fusionpbx-app-dialplan_tools.git edit +fi +if [ .$application_sip_trunks = .'true' ]; then + git clone https://github.com/fusionpbx/fusionpbx-app-sip_trunks.git sip_trunks +fi +chown -R www-data:www-data /var/www/fusionpbx \ No newline at end of file diff --git a/debian/resources/config.sh b/debian/resources/config.sh index 06b23d8..c18e88a 100755 --- a/debian/resources/config.sh +++ b/debian/resources/config.sh @@ -29,3 +29,43 @@ database_backup=false # true or false # General Settings php_version=8.1 # PHP version 7.1, 7.3, 7.4, 8.1 letsencrypt_folder=true # true or false + + +# FusionPBX Settings +domain_name=ip_address # hostname, ip_address or a custom value +system_username=admin # default username admin +system_password=random # random or a custom value +system_branch=5.2 # master, 5.2 + +# FreeSWITCH Settings +switch_branch=stable # master, stable +switch_source=true # true (source compile) or false (binary package) +switch_package=false # true (binary package) or false (source compile) +switch_version=1.10.11 # which source code to download, only for source +switch_tls=true # true or false +switch_token= # Get the auth token from https://signalwire.com + # Signup or Login -> Profile -> Personal Auth Token +# Sofia-Sip Settings +sofia_version=1.13.17 # release-version for sofia-sip to use + +# Database Settings +database_name=fusionpbx # Database name (safe characters A-Z, a-z, 0-9) +database_username=fusionpbx # Database username (safe characters A-Z, a-z, 0-9) +database_password=random # random or a custom value (safe characters A-Z, a-z, 0-9) +database_repo=official # PostgreSQL official, system +database_version=16 # requires repo official +database_host=127.0.0.1 # hostname or IP address +database_port=5432 # port number +database_backup=false # true or false + +# General Settings +php_version=8.1 # PHP version 7.1, 7.3, 7.4, 8.1 +letsencrypt_folder=true # true or false + +# Optional Applications +application_transcribe=true # Speech to Text +application_speech=true # Text to Speech +application_device_logs=true # Log device provision requests +application_dialplan_tools=false # Add additional dialplan applications +application_edit=false # Editor for XML, Provision, Scripts, and PHP +application_sip_trunks=false # Registration based SIP trunks