From 5776a03fe4d9aeb8fdea18a5a6997f4ae7962641 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 11 Nov 2024 17:02:08 +0100 Subject: [PATCH] indent --- bash/rescue-hetzner.sh | 54 +++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/bash/rescue-hetzner.sh b/bash/rescue-hetzner.sh index 49ad0a5..676568d 100644 --- a/bash/rescue-hetzner.sh +++ b/bash/rescue-hetzner.sh @@ -101,33 +101,33 @@ rescue_hetzner_install() { } rescue_hetzner_upload() { -local host="${1}" -local hostname="${2}" -if [ "${hostname}" ] ; then - local user='root' - # - local user_host="${user}@${host}" - # remove fingerprints - ssh-keygen -R "${host}" - # copy ssh id - ssh-copy-id \ - -o 'StrictHostKeyChecking=accept-new' \ - "${user_host}" - # upload root - rsync --delete --recursive "${MAIN_BASH_ROOT}/" "${user_host}:/etc/bash/" - # call setup - # TODO variable - ssh "${user_host}" -- "source '/etc/bash/main.sh' ; rescue_hetzner_configure '${hostname}'" - # create session - ssh "${user_host}" -- byobu new-session -d - # send keys - ssh "${user_host}" -- byobu send-keys 'rescue_hetzner_install' 'C-m' - # attach session - mosh "${user_host}" -- byobu attach-session -else - echo 'Host?' - return 1 -fi + local host="${1}" + local hostname="${2}" + if [ "${hostname}" ] ; then + local user='root' + # + local user_host="${user}@${host}" + # remove fingerprints + ssh-keygen -R "${host}" + # copy ssh id + ssh-copy-id \ + -o 'StrictHostKeyChecking=accept-new' \ + "${user_host}" + # upload root + rsync --delete --recursive "${MAIN_BASH_ROOT}/" "${user_host}:/etc/bash/" + # call setup + # TODO variable + ssh "${user_host}" -- "source '/etc/bash/main.sh' ; rescue_hetzner_configure '${hostname}'" + # create session + ssh "${user_host}" -- byobu new-session -d + # send keys + ssh "${user_host}" -- byobu send-keys 'rescue_hetzner_install' 'C-m' + # attach session + mosh "${user_host}" -- byobu attach-session + else + echo 'Host?' + return 1 + fi } rescue_hetzner_wipe_8_8_0_init() {