clockwerk-tools

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 2  →  ?path2? @ 4
/lib/upgrade-clockwerk
@@ -42,8 +42,8 @@
# OpenSim upgrade
pushd ./
cd ../
if [ ! -d opensim-sources ]; then
svn co http://svn.was.fm/opensim opensim-sources
if [ ! -d clockwerk-opensim ]; then
svn co http://svn.was.fm/clockwerk-opensim
fi
echo "[Clockwerk] Updating sources..."
cd opensim-sources
@@ -54,32 +54,32 @@
make clean
echo "[Clockwerk] Build..."
make
if [ -d /home/opensim/os ]; then
if [ -d /srv/opensim ]; then
echo "[Clockwerk] Copying files..."
mkdir -p /home/opensim/os
mkdir -p /srv/opensim
find bin/ -name \*.ini -exec rm -rf '{}' \;
find bin/ -name \*.config -exec rm -rf '{}' \;
find bin/ -name assets -exec rm -rf '{}' \;
find bin/ -name assetcache -exec -rm -rf '{}' \;
cp -Ra bin/* /home/opensim/os/
cp -Ra bin/* /srv/opensim/
echo "[Clockwerk] Changing ownership..."
chown -R opensim:opensim /home/opensim/os/
chown -R opensim:opensim /srv/opensim/
fi
fi
if [ -d ../opensim-config/ ]; then
cd ../opensim-config/
if [ -d ../clockwerk-opensim-config/ ]; then
cd ../clockwerk-opensim-config/
svn update
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
if [ $? == "0" ]; then
echo "[Clockwerk] Updating configuration..."
cp -Ra * /home/opensim/os/
cp -Ra * /srv/opensim/
mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -D opensim -e "delete from assets where id='00000000-0000-1111-9999-000000000010'"
mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -D opensim -e "delete from assets where id='00000000-0000-1111-9999-000000000011'"
mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -D opensim -e "delete from assets where id='00000000-0000-1111-9999-000000000012'"
fi
fi
if [ -d ../opensim-www/ ]; then
cd ../opensim-www/
if [ -d ../clockwerk-opensim-www/ ]; then
cd ../clockwerk-opensim-www/
svn update
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
if [ $? == "0" ]; then
@@ -90,7 +90,7 @@
fi
fi
popd
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
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
if [ $? == "0" ]; then
echo "[Clockwerk] Deploying tools..."
if [ -x lib/osstrap ]; then