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