mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
[fix] Use new SauceConnect provided by Sauce Labs
Could not dowload "Sauce-Connect-latest.zip" anymore, need to change to new version of SauceConnect.
This commit is contained in:
parent
23969c33b9
commit
db003a1460
1 changed files with 6 additions and 8 deletions
|
@ -1,16 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# download and unzip the sauce connector
|
# download and unzip the sauce connector
|
||||||
curl http://saucelabs.com/downloads/Sauce-Connect-latest.zip > /tmp/sauce.zip
|
curl https://saucelabs.com/downloads/sc-latest-linux.tar.gz > /tmp/sauce.tar.gz
|
||||||
unzip /tmp/sauce.zip -d /tmp
|
tar zxf /tmp/sauce.tar.gz --directory /tmp
|
||||||
|
mv sc-*-linux sauce_connect
|
||||||
|
|
||||||
# start the sauce connector in background and make sure it doesn't output the secret key
|
# start the sauce connector in background and make sure it doesn't output the secret key
|
||||||
(java -jar /tmp/Sauce-Connect.jar $SAUCE_USERNAME $SAUCE_ACCESS_KEY -f /tmp/tunnel > /dev/null )&
|
(/tmp/sauce_connect/bin/sc --user $SAUCE_USERNAME --key $SAUCE_ACCESS_KEY --pidfile /tmp/sauce.pid --readyfile /tmp/tunnel > /dev/null )&
|
||||||
|
|
||||||
# save the sauce pid in a file
|
|
||||||
echo $! > /tmp/sauce.pid
|
|
||||||
|
|
||||||
# wait for the tunnel to build up
|
# wait for the tunnel to build up
|
||||||
while [ ! -e "/tmp/tunnel" ]
|
while [ ! -e "/tmp/tunnel" ]
|
||||||
do
|
do
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue