forked from norman/fusionpbx-install.sh-github-mirror
Update install-nginx.ps1
This commit is contained in:
@@ -1,21 +1,27 @@
|
|||||||
Function Install-Nginx() {
|
Function Install-Nginx() {
|
||||||
|
|
||||||
. .\resources\get-file.ps1
|
. .\resources\get-file.ps1
|
||||||
. .\resources\get-link.ps1
|
. .\resources\get-link.ps1
|
||||||
Write-Host Going to install NGINX
|
. .\resources\install-7zip.ps1
|
||||||
$filename = Get-File http://nginx.org/download/nginx-1.12.1.zip
|
|
||||||
. "C:\Program Files\7-Zip\7z.exe" "e $filename -oc:\Nginx"
|
Write-Host "Going to install NGINX"
|
||||||
|
Get-File http://nginx.org/download/nginx-1.12.1.zip
|
||||||
|
$filename = "nginx-1.12.1.zip"
|
||||||
|
."C:\Program Files\7-Zip\7z.exe" "-e $filename"
|
||||||
# needed for php7.0
|
# needed for php7.0
|
||||||
$filename = Get-File https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe
|
$filename = Get-File https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe
|
||||||
Start-Process vc_redist.x64.exe /quiet -Wait
|
Start-Process vc_redist.x64.exe /quiet -Wait
|
||||||
Write-Host Going to install PHP 7.0
|
Write-Host Going to install PHP 7.2
|
||||||
Get-File http://windows.php.net/downloads/releases/php-7.0.1-nts-Win32-VC14-x64.zip -OutFile php-7.0.1-nts-Win32-VC14-x64.zip
|
$url = "http://windows.php.net/downloads/releases/php-7.2.0-Win32-VC15-x64.zip"
|
||||||
|
|
||||||
$url = "http://windows.php.net/downloads/releases"
|
#$url = "http://windows.php.net/downloads/releases"
|
||||||
#php-7.0.1-nts-Win32-VC14-x64.zip
|
#php-7.2.0-Win32-VC15-x64.zip
|
||||||
$link = Get-Link $url "*php-7.0*x64*"
|
#$link = Get-Link $url "*php-7.2*x64*"
|
||||||
Write-Host Download PHP from $link -ForegroundColor Cyan
|
#Write-Host Download PHP from $link -ForegroundColor Cyan
|
||||||
$filename = Get-File $link
|
$filename = Get-File $url
|
||||||
Start-Process "C:\Program Files\7-Zip\7z.exe" "e $filename" -Wait
|
|
||||||
|
|
||||||
Set-Location "C:/nginx"
|
Start-Process "C:\Program Files\7-Zip\7z.exe" "-e $filename" -Wait
|
||||||
}
|
|
||||||
|
#Set-Location "C:/nginx"
|
||||||
|
}
|
||||||
|
Install-Nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user