Skip to content

Commit

Permalink
Fixed portmap-ssh retry in example
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Nov 19, 2023
1 parent cebddc8 commit 2b11135
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions example/build/setup/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ echo 'install -d -omainuser -gmainuser -m700 /data/mainuser' \

# cat << 'EOF' > /etc/supervisor/conf.d/portmap-ssh.conf
# [program:portmap-ssh]
# command=/usr/bin/ssh -i /home/mainuser/.ssh/portmap-ssh.pem
# -o ServerAliveInterval=30 -o ExitOnForwardFailure=yes
# [email protected] -Nv -R 12345:127.0.0.1:22
# command=/bin/bash -c 'ssh -i /home/mainuser/.ssh/portmap-ssh.pem \
# -o ServerAliveInterval=30 -o ExitOnForwardFailure=yes \
# [email protected] -Nv -R 12345:127.0.0.1:22 \
# || result="$?"; sleep 30; exit "${result:-0}"'
# startsecs=0
# priority=10
# user=mainuser
# EOF
Expand Down

0 comments on commit 2b11135

Please sign in to comment.