Adapt ssh-bouncer case

This commit is contained in:
Alexandre CATTEAU 2023-07-02 12:32:17 +02:00
parent 9e5905562e
commit 7d517c52f4

6
setup.sh Normal file → Executable file
View File

@ -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"
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"