Skip to content

Commit

Permalink
Update run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomDietrich authored Oct 21, 2024
1 parent abe2c10 commit b15f21f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions autossh/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ FORCE_GENERATION=$(jq --raw-output ".force_keygen" $CONFIG_PATH)

#

#
echo ""
echo ""
bashio::log.info "Starting initialization script"
echo ""
echo "The container is connected via the following IP addresses:"
ip -o address show
echo ""

if [ "$FORCE_GENERATION" != "false" ]; then
bashio::log.info "Deleting existing key pair due to set 'force_keygen'"
bashio::log.warning "Do not forget to unset 'force_keygen' in your add-on configuration"
Expand Down Expand Up @@ -105,11 +114,6 @@ echo ""
bashio::log.info "Remote server host keys:"
ssh-keyscan -p $SSH_PORT $HOSTNAME || true

#
echo ""
bashio::log.info "The container is connected via the following IP addresses:"
ip -o address show

COMMAND="/usr/bin/autossh "\
"-M 0 "\
"-o ServerAliveInterval=30 "\
Expand Down

0 comments on commit b15f21f

Please sign in to comment.