mirror of
https://github.com/fluencelabs/node-distro
synced 2025-04-25 07:22:14 +00:00
* Isolate stage, testnet and krasnodar * Use one node as bootstrap * Fix json format * Setup ssh-agent inside deploy container Workaround for `Needed to prompt for a connection or sudo password, but input would be ambiguous in parallel mode` * Add private key of any format * Cleanup * List available command by default when no CMD provided * explain --list Co-authored-by: folex <0xdxdy@gmail.com>
13 lines
263 B
Bash
Executable File
13 lines
263 B
Bash
Executable File
#! /usr/bin/env sh
|
|
|
|
if ! [[ -d /root/.ssh ]]; then
|
|
echo "Private key at '/root/.ssh' is missing or not readable"
|
|
echo "Did you forget to mount .ssh directory with '-v $HOME/.ssh:/root/.ssh:ro'?"
|
|
exit 1
|
|
fi
|
|
|
|
eval $(ssh-agent) > /dev/null
|
|
ssh-add
|
|
|
|
exec fab $@
|