Emitter: Ping remote backup server, fail early
This commit is contained in:
parent
b9775500fb
commit
6ab9c485e6
|
@ -97,6 +97,8 @@
|
|||
mv $out/sbin/burp $out/sbin/burp-untunneled
|
||||
cat > $out/sbin/burp <<-EOF
|
||||
#!/${pkgs.bash}/bin/bash
|
||||
set -e
|
||||
${pkgs.unixtools.ping}/bin/ping -c1 rupert.gvfr.de >/dev/null
|
||||
${pkgs.openssh}/bin/ssh -i /secrets/id_burp_remote -o IdentitiesOnly=yes -o ExitOnForwardFailure=yes -L 4971:localhost:4971 burp-remote@rupert.gvfr.de -f true
|
||||
$out/sbin/burp-untunneled \$@
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue