Fixed go mismatch of dependency
This commit is contained in:
parent
0f99be68b2
commit
4072262385
10 changed files with 58 additions and 2 deletions
|
@ -125,7 +125,7 @@ if command -v netdata-claim.sh > /dev/null; then
|
||||||
if command -v speedtest-cli > /dev/null; then
|
if command -v speedtest-cli > /dev/null; then
|
||||||
# Installing the script to generate report on Internet connection speed
|
# Installing the script to generate report on Internet connection speed
|
||||||
logg info 'Installing script to generate report on Internet connection speed'
|
logg info 'Installing script to generate report on Internet connection speed'
|
||||||
LIBEXEC_PATH="$(netdata -W buildinfo | grep 'Configure options' | sed "s/.*--libexecdir=\([^ \']*\).*/\1/")"
|
LIBEXEC_PATH="$(netdata -W buildinfo | grep 'Configure' | sed "s/.*--libexecdir=\([^ \']*\).*/\1/")"
|
||||||
if [ -d /usr/libexec/netdata/charts.d ]; then
|
if [ -d /usr/libexec/netdata/charts.d ]; then
|
||||||
sudo cp -f "${XDG_DATA_HOME:-$HOME/.local/share}/netdata-speedtest/speedtest.chart.sh" "/usr/libexec/netdata/charts.d/speedtest.chart.sh"
|
sudo cp -f "${XDG_DATA_HOME:-$HOME/.local/share}/netdata-speedtest/speedtest.chart.sh" "/usr/libexec/netdata/charts.d/speedtest.chart.sh"
|
||||||
elif [ -d "$LIBEXEC_PATH/netdata/charts.d" ]; then
|
elif [ -d "$LIBEXEC_PATH/netdata/charts.d" ]; then
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
"file"
|
"file"
|
||||||
"git"
|
"git"
|
||||||
"gnome"
|
"gnome"
|
||||||
|
"go"
|
||||||
"hopenpgp-tools"
|
"hopenpgp-tools"
|
||||||
"libaio"
|
"libaio"
|
||||||
"libxcursor"
|
"libxcursor"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{{- $packages := list
|
{{- $packages := list
|
||||||
"gcc"
|
"gcc"
|
||||||
"gcc-c++"
|
"gcc-c++"
|
||||||
|
"go"
|
||||||
"gnome"
|
"gnome"
|
||||||
"gnupg2-smime"
|
"gnupg2-smime"
|
||||||
"kernel-devel"
|
"kernel-devel"
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
"build-essential"
|
"build-essential"
|
||||||
"gnome"
|
"gnome"
|
||||||
"gnupg-agent"
|
"gnupg-agent"
|
||||||
|
"golang-go"
|
||||||
"hopenpgp-tools"
|
"hopenpgp-tools"
|
||||||
"libaio1"
|
"libaio1"
|
||||||
"libbz2-dev"
|
"libbz2-dev"
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
"gcc-c++"
|
"gcc-c++"
|
||||||
"gnome"
|
"gnome"
|
||||||
"gnupg2-smime"
|
"gnupg2-smime"
|
||||||
|
"go"
|
||||||
"kernel-devel"
|
"kernel-devel"
|
||||||
"libaio"
|
"libaio"
|
||||||
"libXcursor"
|
"libXcursor"
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
"age"
|
"age"
|
||||||
"gcc"
|
"gcc"
|
||||||
"gcc-c++"
|
"gcc-c++"
|
||||||
|
"go"
|
||||||
"kernel-devel"
|
"kernel-devel"
|
||||||
"locate"
|
"locate"
|
||||||
"nodejs"
|
"nodejs"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{{- $packages := list
|
{{- $packages := list
|
||||||
"age"
|
"age"
|
||||||
"bash"
|
"bash"
|
||||||
|
"golang-go"
|
||||||
"gnome"
|
"gnome"
|
||||||
"locate"
|
"locate"
|
||||||
"nodejs"
|
"nodejs"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{{- $packages := list
|
{{- $packages := list
|
||||||
"age"
|
"age"
|
||||||
"build-essential"
|
"build-essential"
|
||||||
|
"golang-go"
|
||||||
"gnome"
|
"gnome"
|
||||||
"gnupg-agent"
|
"gnupg-agent"
|
||||||
"hopenpgp-tools"
|
"hopenpgp-tools"
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
"curl"
|
"curl"
|
||||||
"expect"
|
"expect"
|
||||||
"git"
|
"git"
|
||||||
"go"
|
|
||||||
"grep"
|
"grep"
|
||||||
"gnupg2"
|
"gnupg2"
|
||||||
"jq"
|
"jq"
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
# Source: https://gist.github.com/ScottHutchinson/b22339c3d3688da5c9b477281e258400
|
||||||
|
# Based on http://nuts4.net/post/automated-download-and-installation-of-visual-studio-extensions-via-powershell
|
||||||
|
|
||||||
|
param([String] $PackageName)
|
||||||
|
|
||||||
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
|
$baseProtocol = "https:"
|
||||||
|
$baseHostName = "marketplace.visualstudio.com"
|
||||||
|
|
||||||
|
$Uri = "$($baseProtocol)//$($baseHostName)/items?itemName=$($PackageName)"
|
||||||
|
$VsixLocation = "$($env:Temp)\$([guid]::NewGuid()).vsix"
|
||||||
|
|
||||||
|
$VSInstallDir = "C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service"
|
||||||
|
|
||||||
|
if (-Not $VSInstallDir) {
|
||||||
|
Write-Error "Visual Studio InstallDir registry key missing"
|
||||||
|
Exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Host "Grabbing VSIX extension at $($Uri)"
|
||||||
|
$HTML = Invoke-WebRequest -Uri $Uri -UseBasicParsing -SessionVariable session
|
||||||
|
|
||||||
|
Write-Host "Attempting to download $($PackageName)..."
|
||||||
|
$anchor = $HTML.Links |
|
||||||
|
Where-Object { $_.class -eq 'install-button-container' } |
|
||||||
|
Select-Object -ExpandProperty href
|
||||||
|
|
||||||
|
if (-Not $anchor) {
|
||||||
|
Write-Error "Could not find download anchor tag on the Visual Studio Extensions page"
|
||||||
|
Exit 1
|
||||||
|
}
|
||||||
|
Write-Host "Anchor is $($anchor)"
|
||||||
|
$href = "$($baseProtocol)//$($baseHostName)$($anchor)"
|
||||||
|
Write-Host "Href is $($href)"
|
||||||
|
Invoke-WebRequest $href -OutFile $VsixLocation -WebSession $session
|
||||||
|
|
||||||
|
if (-Not (Test-Path $VsixLocation)) {
|
||||||
|
Write-Error "Downloaded VSIX file could not be located"
|
||||||
|
Exit 1
|
||||||
|
}
|
||||||
|
Write-Host "VSInstallDir is $($VSInstallDir)"
|
||||||
|
Write-Host "VsixLocation is $($VsixLocation)"
|
||||||
|
Write-Host "Installing $($PackageName)..."
|
||||||
|
Start-Process -Filepath "$($VSInstallDir)\VSIXInstaller" -ArgumentList "/q /a $($VsixLocation)" -Wait
|
||||||
|
|
||||||
|
Write-Host "Cleanup..."
|
||||||
|
rm $VsixLocation
|
||||||
|
|
||||||
|
Write-Host "Installation of $($PackageName) complete!"
|
Loading…
Reference in a new issue