opensim-tools – Blame information for rev 23
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
20 | eva | 1 | #!/bin/bash |
2 | ########################################################################### |
||
3 | ## Copyright (C) Wizardry and Steamworks 2013 - License: GNU GPLv3 ## |
||
4 | ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## |
||
5 | ## rights of fair usage, the disclaimer and warranty conditions. ## |
||
6 | ########################################################################### |
||
7 | |||
8 | pushd ./ |
||
9 | if [ -d ../opensim-sources ]; then |
||
10 | cd ../opensim-sources/ |
||
11 | echo "[SpectacledOwl] Updating sources..." |
||
12 | svn update |
||
13 | echo "[SpectacledOwl] Cleaning..." |
||
14 | PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make clean |
||
15 | echo "[SpectacledOwl] Build..." |
||
16 | PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make |
||
17 | if [ -d /home/opensim/os ]; then |
||
18 | echo "[SpectacledOwl] Copying files..." |
||
19 | mkdir -p /home/opensim/os |
||
20 | find bin/ -name \*.ini -exec rm -rf '{}' \; |
||
21 | find bin/ -name \*.config -exec rm -rf '{}' \; |
||
22 | cp -Ra bin/* /home/opensim/os/ |
||
23 | echo "[SpectacledOwl] Changing ownership..." |
||
24 | chown -R opensim:opensim /home/opensim/os/ |
||
25 | fi |
||
26 | fi |
||
27 | if [ -d ../opensim-config ]; then |
||
28 | echo "[SpectacledOwl] Updating configuration..." |
||
29 | cd ../opensim-config/ |
||
30 | svn update |
||
31 | cp -Ra * /home/opensim/os/ |
||
32 | fi |
||
33 | if [ -d /var/opensim-www ]; then |
||
34 | echo "[SpectacledOwl] Updating website..." |
||
35 | cd /var/opensim-www/ |
||
36 | svn update |
||
37 | chown -R www-data:www-data /var/opensim-www |
||
38 | service lighttpd restart |
||
39 | fi |
||
40 | popd |
||
41 | echo "[SpectacledOwl] Deploying tools..." |
||
23 | eva | 42 | if [ -x lib/osstrap ]; then |
20 | eva | 43 | cp osstrap /etc/init.d/osstrap |
44 | fi |
||
23 | eva | 45 | if [ -x lib/iardumper ]; then |
20 | eva | 46 | cp iardumper /etc/cron.daily/iardumper |
47 | fi |
||
48 | echo "[SpectacledOwl] Applying firewall..." |
||
23 | eva | 49 | if [ -x lib/firewall ]; then |
20 | eva | 50 | ./firewall |
51 | fi |
||
52 | echo "[SpectacledOwl] Restarting SpectacledOwl." |
||
53 | kill -s HUP `pidof mono` |
||
54 | echo "[SpectacledOwl] Done." |
||
55 |