Files
fusionpbx-install.sh/windows/install.ps1
Emmanuel Mahuni 176481d8e4 Fix Invoke-WebRequest Fails with SSL/TLS Secure Channel fails (#294)
It seems like on Windows Server 2016 or maybe other Windows OSs powershell uses TLS 1.0 by default and the sources have different tls versions. So this will make the script work without throwing those errors.
2020-01-22 00:17:33 -07:00

37 lines
935 B
PowerShell

# Install FusionPBX
# Installs PostreSQL, PostgreSQL ODBC driver, PHP 7.1, GIT, Web Platform Installer,
# Configures ODBC, IIS, and FusionPBX
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls, ssl3"
# includes
. .\resources\config.ps1
. .\resources\get-file.ps1
. .\resources\get-link.ps1
. .\resources\get-installed-app.ps1
. .\resources\install-postgresql.ps1
. .\resources\install-postgresql-odbc.ps1
. .\resources\install-freeswitch.ps1
. .\resources\install-git.ps1
. .\resources\install-fusionpbx.ps1
. .\resources\install-webplatform.ps1
. .\resources\install-iis.ps1
# installed applications
Get-Installed-App "FreeSWITCH*"
Get-Installed-App "PHP*"
Get-Installed-App "PostgreSQL*"
Get-Installed-App "psqlODBC*"
Get-Installed-App "7zip"
Install-PostgreSQL
Install-PostgresODBC
Install-FreeSWITCH
Install-Git
Install-FusionPBX
Install-WebPlatform
Install-IIS
# Finish the install
. .\resources\finish.ps1