Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(857)

Side by Side Diff: experimental/webtry/setup/webtry_setup.sh

Issue 626703002: Restart webtry to pick up changes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « .gitignore ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 \
humper 2014/10/03 10:07:03 I think these apt-gets have moved into webtry_setu
tfarina 2014/10/03 11:57:37 ops, rebased. Fixed.
7 libglu1-mesa-dev mesa-common-dev freeglut3-dev libgif-dev libfontconfig \
8 libfontconfig-dev
7 9
8 echo "Adding the webtry user account" 10 echo "Adding the webtry user account"
9 sudo adduser webtry 11 sudo adduser webtry
10 12
11 sudo cp continue_install /home/webtry/continue_install 13 sudo cp continue_install /home/webtry/continue_install
12 sudo chmod 766 /home/webtry/continue_install 14 sudo chmod 766 /home/webtry/continue_install
13 sudo chown webtry:webtry /home/webtry/continue_install 15 sudo chown webtry:webtry /home/webtry/continue_install
14 sudo su webtry -c /home/webtry/continue_install 16 sudo su webtry -c /home/webtry/continue_install
15 17
16 sudo mkdir -p /srv/chroot/webtry 18 sudo mkdir -p /srv/chroot/webtry
17 sudo cp /home/webtry/skia/experimental/webtry/sys/webtry_schroot /etc/schroot/ch root.d/webtry 19 sudo cp /home/webtry/skia/experimental/webtry/sys/webtry_schroot /etc/schroot/ch root.d/webtry
18 20
19 sudo mkdir /srv/chroot/webtry/etc 21 sudo mkdir /srv/chroot/webtry/etc
20 sudo mkdir /srv/chroot/webtry/bin 22 sudo mkdir /srv/chroot/webtry/bin
21 sudo cp /bin/sh /srv/chroot/webtry/bin/sh 23 sudo cp /bin/sh /srv/chroot/webtry/bin/sh
22 24
23 # Copy all the dependent libraries into the schroot. 25 # Copy all the dependent libraries into the schroot.
24 sudo cp --parents `ldd /home/webtry/skia/out/Debug/webtry | cut -d " " -f 3` /sr v/chroot/webtry 26 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 27 sudo cp --parents `ldd /bin/sh | cut -d " " -f 3` /srv/chroot/webtry
26 28
27 sudo cp /home/webtry/skia/experimental/webtry/sys/webtry_init /etc/init.d/webtry 29 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 30 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 31 sudo cp /home/webtry/skia/experimental/webtry/sys/webtry_squid /etc/squid3/squid .conf
30 sudo chmod 744 /etc/init.d/webtry 32 sudo chmod 744 /etc/init.d/webtry
31 33
32 # Confirm that monit is happy. 34 # Confirm that monit is happy.
33 sudo monit -t 35 sudo monit -t
34 sudo monit reload 36 sudo monit reload
37
38 sudo /etc/init.d/webtry restart
humper 2014/10/03 10:07:03 I think this would be better in continue_install.s
tfarina 2014/10/03 11:57:37 I haven't moved it there, because we happen to cal
OLDNEW
« no previous file with comments | « .gitignore ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698