opensim-tools – Blame information for rev 19

Subversion Repositories:
Rev:
Rev Author Line No. Line
15 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  
17 eva 8 echo "[SpectacledOwl] Updating tools..."
15 eva 9 svn update
18 eva 10 upgrade() {
11 pushd ./
12 if [ -d ../opensim-sources ]; then
13 cd ../opensim-sources/
14 echo "[SpectacledOwl] Updating sources..."
15 svn update
16 echo "[SpectacledOwl] Cleaning..."
17 PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make clean
18 echo "[SpectacledOwl] Build..."
19 PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make
20 if [ -d /home/opensim/os ]; then
21 echo "[SpectacledOwl] Copying files..."
22 mkdir -p /home/opensim/os
23 find bin/ -name \*.ini -exec rm -rf '{}' \;
24 find bin/ -name \*.config -exec rm -rf '{}' \;
25 cp -Ra bin/* /home/opensim/os/
26 echo "[SpectacledOwl] Changing ownership..."
27 chown -R opensim:opensim /home/opensim/os/
28 fi
15 eva 29 fi
18 eva 30 if [ -d ../opensim-config ]; then
31 echo "[SpectacledOwl] Updating configuration..."
32 cd ../opensim-config/
33 svn update
34 cp -Ra * /home/opensim/os/
35 fi
36 if [ -d /var/opensim-www ]; then
37 echo "[SpectacledOwl] Updating website..."
38 cd /var/opensim-www/
39 svn update
40 chown -R www-data:www-data /var/opensim-www
41 service lighttpd restart
42 fi
43 popd
44 echo "[SpectacledOwl] Deploying tools..."
45 if [ -x osstrap ]; then
46 cp osstrap /etc/init.d/osstrap
47 fi
48 if [ -x iardumper ]; then
49 cp iardumper /etc/cron.daily/iardumper
50 fi
51 echo "[SpectacledOwl] Applying firewall..."
52 if [ -x firewall ]; then
53 ./firewall
54 fi
55 echo "[SpectacledOwl] Restarting SpectacledOwl."
56 kill -s HUP `pidof mono`
57 echo "[SpectacledOwl] Done."
19 eva 58 }; upgrade &