OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # Script to setup a GCE instance to run the webtry server. | 3 # Script to setup a GCE instance to run the webtry server. |
4 # For full instructions see the README file. | 4 # For full instructions see the README file. |
5 sudo apt-get install schroot debootstrap monit squid3 | 5 sudo apt-get install schroot debootstrap monit squid3 |
6 sudo apt-get install g++ libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev l
ibglu1-mesa-dev mesa-common-dev freeglut3-dev libgif-dev libfontconfig libfontco
nfig-dev | 6 sudo apt-get install g++ libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev l
ibglu1-mesa-dev mesa-common-dev freeglut3-dev libgif-dev libfontconfig libfontco
nfig-dev |
7 | 7 |
8 echo "Adding the webtry user account" | 8 echo "Adding the webtry user account" |
9 sudo adduser webtry | 9 sudo adduser webtry |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 sudo cp --parents `ldd /home/webtry/skia/out/Debug/webtry | cut -d " " -f 3` /sr
v/chroot/webtry | 24 sudo cp --parents `ldd /home/webtry/skia/out/Debug/webtry | cut -d " " -f 3` /sr
v/chroot/webtry |
25 sudo cp --parents `ldd /bin/sh | cut -d " " -f 3` /srv/chroot/webtry | 25 sudo cp --parents `ldd /bin/sh | cut -d " " -f 3` /srv/chroot/webtry |
26 | 26 |
27 sudo cp /home/webtry/skia/experimental/webtry/sys/webtry_init /etc/init.d/webtry | 27 sudo cp /home/webtry/skia/experimental/webtry/sys/webtry_init /etc/init.d/webtry |
28 sudo cp /home/webtry/skia/experimental/webtry/sys/webtry_monit /etc/monit/conf.d
/webtry | 28 sudo cp /home/webtry/skia/experimental/webtry/sys/webtry_monit /etc/monit/conf.d
/webtry |
29 sudo cp /home/webtry/skia/experimental/webtry/sys/webtry_squid /etc/squid3/squid
.conf | 29 sudo cp /home/webtry/skia/experimental/webtry/sys/webtry_squid /etc/squid3/squid
.conf |
30 sudo chmod 744 /etc/init.d/webtry | 30 sudo chmod 744 /etc/init.d/webtry |
31 | 31 |
32 # Confirm that monit is happy. | 32 # Confirm that monit is happy. |
33 sudo monit -t | 33 sudo monit -t |
| 34 sudo monit reload |
OLD | NEW |