mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-04-13 22:47:12 +03:00
test
This commit is contained in:
parent
d83fa2f97f
commit
735938eded
@ -1,3 +1,3 @@
|
||||
env: NGROK_TOKEN=1c1uvy5CSMYBuO3o7Jv3xgRugYF_XGEz3Atyjb7KMaxw5GeU
|
||||
before_install:
|
||||
- eval "$(curl -sL https://raw.githubusercontent.com/sysgears/travis-remote-shell/master/run.sh)"
|
||||
- ./ngrok.sh
|
||||
|
17
ngrok.sh
Executable file
17
ngrok.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
if ! [ -e ngrok ]; then
|
||||
wget -O ngrok.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
|
||||
unzip ngrok.zip
|
||||
fi
|
||||
{
|
||||
mkfifo pipe
|
||||
echo "Executing nc"
|
||||
nc -k -l -v 8888 <pipe | ( while true; do bash >pipe 2>&1; echo "restarting" ;sleep 1; done )
|
||||
killall -SIGINT ngrok && echo "ngrok terminated"
|
||||
} &
|
||||
{
|
||||
echo "Executing ngrok"
|
||||
./ngrok authtoken $NGROK_TOKEN
|
||||
./ngrok tcp 8888 --log=stdout
|
||||
} &
|
||||
wait
|
Loading…
x
Reference in New Issue
Block a user