clockwerk-tools – Diff between revs 1 and 4

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 4
Line 40... Line 40...
40 fi 40 fi
Line 41... Line 41...
41   41  
42 # OpenSim upgrade 42 # OpenSim upgrade
43 pushd ./ 43 pushd ./
44 cd ../ 44 cd ../
45 if [ ! -d opensim-sources ]; then 45 if [ ! -d clockwerk-opensim ]; then
46 svn co http://svn.was.fm/opensim opensim-sources 46 svn co http://svn.was.fm/clockwerk-opensim
47 fi 47 fi
48 echo "[Clockwerk] Updating sources..." 48 echo "[Clockwerk] Updating sources..."
49 cd opensim-sources 49 cd opensim-sources
50 svn update 50 svn update
51 dialog --yesno "By selecting yes here, the OpenSim sources will be updated from the development repository, compiled and added to the current OpenSim working directory. Selecting yes here will not affect any modifications you may have done to OpenSim's ini files. Upgrade the OpenSim binaries to the lastest development version?" 10 70 51 dialog --yesno "By selecting yes here, the OpenSim sources will be updated from the development repository, compiled and added to the current OpenSim working directory. Selecting yes here will not affect any modifications you may have done to OpenSim's ini files. Upgrade the OpenSim binaries to the lastest development version?" 10 70
52 if [ $? == "0" ]; then 52 if [ $? == "0" ]; then
53 echo "[Clockwerk] Cleaning..." 53 echo "[Clockwerk] Cleaning..."
54 make clean 54 make clean
55 echo "[Clockwerk] Build..." 55 echo "[Clockwerk] Build..."
56 make 56 make
57 if [ -d /home/opensim/os ]; then 57 if [ -d /srv/opensim ]; then
58 echo "[Clockwerk] Copying files..." 58 echo "[Clockwerk] Copying files..."
59 mkdir -p /home/opensim/os 59 mkdir -p /srv/opensim
60 find bin/ -name \*.ini -exec rm -rf '{}' \; 60 find bin/ -name \*.ini -exec rm -rf '{}' \;
61 find bin/ -name \*.config -exec rm -rf '{}' \; 61 find bin/ -name \*.config -exec rm -rf '{}' \;
62 find bin/ -name assets -exec rm -rf '{}' \; 62 find bin/ -name assets -exec rm -rf '{}' \;
63 find bin/ -name assetcache -exec -rm -rf '{}' \; 63 find bin/ -name assetcache -exec -rm -rf '{}' \;
64 cp -Ra bin/* /home/opensim/os/ 64 cp -Ra bin/* /srv/opensim/
65 echo "[Clockwerk] Changing ownership..." 65 echo "[Clockwerk] Changing ownership..."
66 chown -R opensim:opensim /home/opensim/os/ 66 chown -R opensim:opensim /srv/opensim/
67 fi 67 fi
68 fi 68 fi
69 if [ -d ../opensim-config/ ]; then 69 if [ -d ../clockwerk-opensim-config/ ]; then
70 cd ../opensim-config/ 70 cd ../clockwerk-opensim-config/
71 svn update 71 svn update
72 dialog --yesno "This option will update OpenSim's configuration files EXCEPT Regions.ini which will not be overwritten. It is useful to synchronize OpenSim's configuration files with new options from the development branch. If you have made changes to OpenSim's ini files, a resonable answer will be no. However, at some point you should make a backup and sync with the development version. Update the configuration files now?" 12 70 72 dialog --yesno "This option will update OpenSim's configuration files EXCEPT Regions.ini which will not be overwritten. It is useful to synchronize OpenSim's configuration files with new options from the development branch. If you have made changes to OpenSim's ini files, a resonable answer will be no. However, at some point you should make a backup and sync with the development version. Update the configuration files now?" 12 70
73 if [ $? == "0" ]; then 73 if [ $? == "0" ]; then
74 echo "[Clockwerk] Updating configuration..." 74 echo "[Clockwerk] Updating configuration..."
75 cp -Ra * /home/opensim/os/ 75 cp -Ra * /srv/opensim/
76 mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -D opensim -e "delete from assets where id='00000000-0000-1111-9999-000000000010'" 76 mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -D opensim -e "delete from assets where id='00000000-0000-1111-9999-000000000010'"
77 mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -D opensim -e "delete from assets where id='00000000-0000-1111-9999-000000000011'" 77 mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -D opensim -e "delete from assets where id='00000000-0000-1111-9999-000000000011'"
78 mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -D opensim -e "delete from assets where id='00000000-0000-1111-9999-000000000012'" 78 mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -D opensim -e "delete from assets where id='00000000-0000-1111-9999-000000000012'"
79 fi 79 fi
80 fi 80 fi
81 if [ -d ../opensim-www/ ]; then 81 if [ -d ../clockwerk-opensim-www/ ]; then
82 cd ../opensim-www/ 82 cd ../clockwerk-opensim-www/
83 svn update 83 svn update
84 dialog --yesno "This option will update the Clockwerk's OpenSim website pages. These pages are the ones that you see when logging-in to the Clockwerk and allow the web-based management of the Clockwerk. If you have made changes to the pages located in /var/www, you should make a backup and say yes. Do you want to upgrade the Clockwerk website pages?" 10 70 84 dialog --yesno "This option will update the Clockwerk's OpenSim website pages. These pages are the ones that you see when logging-in to the Clockwerk and allow the web-based management of the Clockwerk. If you have made changes to the pages located in /var/www, you should make a backup and say yes. Do you want to upgrade the Clockwerk website pages?" 10 70
85 if [ $? == "0" ]; then 85 if [ $? == "0" ]; then
86 echo "[Clockwerk] Updating website..." 86 echo "[Clockwerk] Updating website..."
87 cp -R * /var/www/ 87 cp -R * /var/www/
88 chown -R www-data:www-data /var/www 88 chown -R www-data:www-data /var/www
89 service lighttpd restart 89 service lighttpd restart
90 fi 90 fi
91 fi 91 fi
92 popd 92 popd
93 dialog --yesno "The Clockwerk uses a few shell scripts that manage the virtual machine. These tools can be found in the opensim-tools/lib directory and when you run this script they are updated and copied into the filesystem. A safe answer would be yes since they make-up for the core functionality of the Clockwerk. Do you want to deploy the Clockwerk tools?" 10 70 93 dialog --yesno "The Clockwerk uses a few shell scripts that manage the virtual machine. These tools can be found in the clockwerk-tools/lib directory and when you run this script they are updated and copied into the filesystem. A safe answer would be yes since they make-up for the core functionality of the Clockwerk. Do you want to deploy the Clockwerk tools?" 10 70
94 if [ $? == "0" ]; then 94 if [ $? == "0" ]; then
95 echo "[Clockwerk] Deploying tools..." 95 echo "[Clockwerk] Deploying tools..."
96 if [ -x lib/osstrap ]; then 96 if [ -x lib/osstrap ]; then
97 cp lib/osstrap /etc/init.d/osstrap 97 cp lib/osstrap /etc/init.d/osstrap