mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 20:16:23 +00:00
use WEBI_HOST rather than webinstall.dev
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ pushd .local\bin
|
||||
|
||||
# TODO SetStrictMode
|
||||
# TODO Test-Path variable:global:Env:WEBI_HOST ???
|
||||
IF(!$Env:WEBI_HOST)
|
||||
IF(!($Env:WEBI_HOST -eq $null -or $Env:WEBI_HOST -eq "")) {
|
||||
{
|
||||
$Env:WEBI_HOST = "https://webinstall.dev"
|
||||
}
|
||||
|
||||
+2
-1
@@ -6,4 +6,5 @@
|
||||
# See https://webinstall.dev/golang
|
||||
|
||||
echo "'go@${WEBI_TAG:-stable}' is an alias for 'golang@${WEBI_VERSION:-}'"
|
||||
curl -fsSL https://webinstall.dev/golang@${WEBI_VERSION:-} | bash
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/golang@${WEBI_VERSION:-}" | bash
|
||||
|
||||
@@ -6,4 +6,5 @@
|
||||
# See https://webinstall.dev/postgres
|
||||
|
||||
echo "'postgresql' is an alias for 'postgres'"
|
||||
curl -fsSL https://webinstall.dev/postgres@${WEBI_VERSION:-} | bash
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/postgres@${WEBI_VERSION:-}" | bash
|
||||
|
||||
+2
-1
@@ -6,4 +6,5 @@
|
||||
# See https://webinstall.dev/rg
|
||||
|
||||
echo "'ripgrep@${WEBI_TAG:-}' (project) is an alias for 'rg@${WEBI_VERSION:-}' (command)"
|
||||
curl -fsSL https://webinstall.dev/rg@${WEBI_VERSION:-} | bash
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/rg@${WEBI_VERSION:-}" | bash
|
||||
|
||||
+2
-1
@@ -6,4 +6,5 @@
|
||||
# See https://webinstall.dev/rustlang
|
||||
|
||||
echo "'rust' is an alias for 'rustlang'"
|
||||
curl -fsSL https://webinstall.dev/rustlang@${WEBI_VERSION:-} | bash
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/rustlang@${WEBI_VERSION:-}" | bash
|
||||
|
||||
@@ -39,8 +39,9 @@
|
||||
sudo -i -u app bash -c 'ssh-keygen -b 2048 -t rsa -f /home/app/.ssh/id_rsa -q -N ""'
|
||||
|
||||
# Install webi for the new 'app' user
|
||||
sudo -i -u app bash -c 'curl -fsSL https://webinstall.dev/webi | bash' \
|
||||
|| sudo -i -u app bash -c 'wget -q -O - https://webinstall.dev/webi | bash'
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
sudo -i -u app bash -c "curl -fsSL '$WEBI_HOST/webi' | bash" \
|
||||
|| sudo -i -u app bash -c "wget -q -O - '$WEBI_HOST/webi' | bash"
|
||||
|
||||
# TODO ensure that ssh-password login is off
|
||||
|
||||
|
||||
Reference in New Issue
Block a user