From daa9d3109708f01875621a604b9332c0f1da2074 Mon Sep 17 00:00:00 2001 From: Raine Date: Sun, 22 Oct 2023 17:59:48 +0200 Subject: [PATCH] feat: add lil' ssh debug log --- tools/server-setup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/server-setup.sh b/tools/server-setup.sh index 0407871..6ace97f 100755 --- a/tools/server-setup.sh +++ b/tools/server-setup.sh @@ -13,10 +13,11 @@ if ! [ "$(id -u)" = "0" ]; then fi echo "testing git connection..." -if ! ssh git@git.ixvd.net &>/dev/null; then - echo "can't connect to git, please setup ssh" +if ! ssh git@git.ixvd.net &>/tmp/$$-ssh-output; then + echo "can't connect to git, please setup ssh (logs: /tmp/$$-ssh-output)" exit 1 fi +rm /tmp/$$-ssh-output ## MAIN