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 | 5 |
6 function banner { | 6 function banner { |
7 echo "" | 7 echo "" |
8 echo "******************************************" | 8 echo "******************************************" |
9 echo "*" | 9 echo "*" |
10 echo "* $1" | 10 echo "* $1" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 banner "Building the webtry server outside the jail" | 63 banner "Building the webtry server outside the jail" |
64 | 64 |
65 sudo cp continue_install.sh /home/webtry | 65 sudo cp continue_install.sh /home/webtry |
66 sudo chown webtry:webtry /home/webtry/continue_install.sh | 66 sudo chown webtry:webtry /home/webtry/continue_install.sh |
67 sudo su - webtry -c /home/webtry/continue_install.sh | 67 sudo su - webtry -c /home/webtry/continue_install.sh |
68 | 68 |
69 banner "Setting up system initialization scripts" | 69 banner "Setting up system initialization scripts" |
70 | 70 |
71 sudo cp sys/webtry_init /etc/init.d/webtry | 71 sudo cp sys/webtry_init /etc/init.d/webtry |
| 72 sudo cp sys/logserver_init /etc/init.d/logserver |
72 sudo cp sys/webtry_monit /etc/monit/conf.d/webtry | 73 sudo cp sys/webtry_monit /etc/monit/conf.d/webtry |
73 sudo cp sys/webtry_squid /etc/squid3/squid.conf | 74 sudo cp sys/webtry_squid /etc/squid3/squid.conf |
74 sudo chmod 744 /etc/init.d/webtry | 75 sudo chmod 744 /etc/init.d/webtry |
| 76 sudo chmod 744 /etc/init.d/logserver |
75 | 77 |
76 # Confirm that monit is happy. | 78 # Confirm that monit is happy. |
77 sudo monit -t | 79 sudo monit -t |
78 sudo monit reload | 80 sudo monit reload |
79 | 81 |
80 banner "Restarting webtry server" | 82 banner "Restarting webtry server" |
81 | 83 |
82 sudo /etc/init.d/webtry restart | 84 sudo /etc/init.d/webtry restart |
| 85 sudo /etc/init.d/logserver restart |
83 | 86 |
84 banner "All done!" | 87 banner "All done!" |
OLD | NEW |