From 7d517c52f4888eac50d1cf4a27a4b21ac1673545 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Sun, 2 Jul 2023 12:32:17 +0200 Subject: [PATCH] Adapt ssh-bouncer case --- setup.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) mode change 100644 => 100755 setup.sh diff --git a/setup.sh b/setup.sh old mode 100644 new mode 100755 index 4377019..3127a2e --- a/setup.sh +++ b/setup.sh @@ -55,8 +55,10 @@ sudo -H -u $user $sync_directory_path/conf-sync/install.sh # set use case config echo "Getting and deploying use-case $use_case configuration" -sudo -H -u $user git clone https://gitea.kto.black/adminconf/$use_case.git $sync_directory_path/$use_case -# TODO how to start install? We need to define variables +if [[ $use_case != 'ssh-bounce-server' ]]; then + sudo -H -u $user git clone https://gitea.kto.black/adminconf/$use_case.git $sync_directory_path/$use_case + # TODO how to start install? We need to define variables +fi # SSH config echo "Getting SSH public key" @@ -77,7 +79,9 @@ echo "" echo "We're all good here!" echo "You should now:" echo "* lock root account" -echo "* copy your SSH config file" +if [[ $use_case = 'ssh-bounce-server' ]]; then + echo "* clone remote-stuff" +fi echo "* reboot the SBC" echo "And perhaps:" echo "* set a new password for $user"