Skip to content

Commit

Permalink
Updating submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunMaher committed Oct 10, 2023
1 parent 818879e commit 4aed14d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .submodules/tooling
Submodule tooling updated from b87481 to f1ffb2
29 changes: 6 additions & 23 deletions tooling/run_syncoid.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/env bash

# Load boilerplate functions
function Source() { local ScriptName="$1" ; shift ; source "$ScriptName" ; }
Source "$(dirname "$(readlink -f "${0}")")/bash-boilerplate/source" || exit 1

SSH_REMOTE_HOST="${SSH_REMOTE_HOST:-"ph3.local"}"
SSH_USERNAME="${SSH_USERNAME:-"syncoid"}"
SSH_PORT="${SSH_PORT:-10022}"
Expand All @@ -17,29 +23,6 @@ if [ "${HOME}" == "" ]; then
export HOME=$(getent passwd "${USER}" | awk 'BEGIN{FS=":"}{print $6}')
fi

RED='\033[1;31m'
GREEN='\033[1;32m'
YELLOW='\033[1;33m'
GRAY='\033[1;90m'
NC='\033[0m' # No Color
export

function verbose() {
printf '%b\n' "${YELLOW}${1}${NC}"
}

function debug() {
printf '%b\n' "${GRAY}${1}${NC}"
}

function info() {
printf '%b\n' "${GREEN}${1}${NC}"
}

function error() {
printf '%b\n' "${RED}${1}${NC}"
}

# Create and populate a ~/.ssh/config file
# TODO: This need to be expandable to multiple remote targets
mkdir -p "${HOME}/.ssh"
Expand Down

0 comments on commit 4aed14d

Please sign in to comment.