hack/deploy: move ssh_cmd to right place
This commit is contained in:
parent
ed1c39a5f1
commit
c7a66f35e6
1 changed files with 2 additions and 1 deletions
|
@ -8,10 +8,11 @@ set -euo pipefail
|
||||||
|
|
||||||
./hack/populate_secrets.sh
|
./hack/populate_secrets.sh
|
||||||
|
|
||||||
|
ssh_cmd="ssh -o StrictHostKeyChecking=accept-new"
|
||||||
|
|
||||||
if [ ! -z ${2+x} ]; then ssh_cmd="$ssh_cmd $2"; fi
|
if [ ! -z ${2+x} ]; then ssh_cmd="$ssh_cmd $2"; fi
|
||||||
|
|
||||||
system="$(nix run nixpkgs.jq -c jq -r ".[\"${1}\"]" systems.json)"
|
system="$(nix run nixpkgs.jq -c jq -r ".[\"${1}\"]" systems.json)"
|
||||||
echo System is $system
|
echo System is $system
|
||||||
|
|
||||||
ssh_cmd="ssh -o StrictHostKeyChecking=accept-new"
|
|
||||||
$ssh_cmd -t "deployer@$1" switch-prebuilt "$system"
|
$ssh_cmd -t "deployer@$1" switch-prebuilt "$system"
|
||||||
|
|
Loading…
Reference in a new issue