| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 | 2 |
| 3 # Hack to get swarming access to /b | 3 # Hack to get swarming access to /b |
| 4 sudo chmod 777 /b | 4 sudo chmod 777 /b |
| 5 | 5 |
| 6 # Wait 10s to make sure ssl is fully booted. Otherwise, we get an error | 6 # Wait 10s to make sure ssl is fully booted. Otherwise, we get an error |
| 7 # when trying to download the bootstrap code. | 7 # when trying to download the bootstrap code. |
| 8 sleep 10s | 8 sleep 10s |
| 9 | 9 |
| 10 # Copy authentication to home directory |
| 11 cp /opt/.gitconfig /home/chrome-bot/.gitconfig |
| 12 cp /opt/.netrc /home/chrome-bot/.netrc |
| 13 |
| 10 if [ ! -d "/b/s" ]; then | 14 if [ ! -d "/b/s" ]; then |
| 11 cd /b | 15 cd /b |
| 12 echo "Bootstrapping swarming, expect a reboot" | 16 echo "Bootstrapping swarming, expect a reboot" |
| 13 python -c "import urllib; exec urllib.urlopen('https://chromium-swarm.appspot.
com/bootstrap').read()" | 17 python -c "import urllib; exec urllib.urlopen('https://chromium-swarm.appspot.
com/bootstrap').read()" |
| 14 else | 18 else |
| 15 echo "Starting swarming" | 19 echo "Starting swarming" |
| 16 /usr/bin/python /b/s/swarming_bot.zip start_bot & | 20 /usr/bin/python /b/s/swarming_bot.zip start_bot & |
| 17 fi | 21 fi |
| OLD | NEW |