/upgrade-spectacled-owl |
@@ -5,41 +5,42 @@ |
## rights of fair usage, the disclaimer and warranty conditions. ## |
########################################################################### |
|
echo "[OpenSim] Updating tools..." |
echo "[SpectacledOwl] Updating tools..." |
svn update |
pushd ./ |
if [ -d ../opensim-sources ]; then |
cd ../opensim-sources/ |
echo "[OpenSim] Updating sources..." |
echo "[SpectacledOwl] Updating sources..." |
svn update |
echo "[OpenSim] Cleaning..." |
echo "[SpectacledOwl] Cleaning..." |
PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make clean |
echo "[OpenSim] Build..." |
echo "[SpectacledOwl] Build..." |
PKG_CONFIG_PATH=/opt/mono-4-0/lib/pkgconfig make |
if [ -d /home/opensim/os ]; then |
echo "[OpenSim] Copying files..." |
echo "[SpectacledOwl] Copying files..." |
mkdir -p /home/opensim/os |
find bin/ -name \*.ini -exec rm -rf '{}' \; |
find bin/ -name \*.config -exec rm -rf '{}' \; |
cp -Ra bin/* /home/opensim/os/ |
echo "[OpenSim] Changing ownership..." |
echo "[SpectacledOwl] Changing ownership..." |
chown -R opensim:opensim /home/opensim/os/ |
fi |
fi |
if [ -d ../opensim-config ]; then |
echo "[OpenSim] Updating configuration..." |
echo "[SpectacledOwl] Updating configuration..." |
cd ../opensim-config/ |
svn update |
cp -Ra * /home/opensim/os/ |
fi |
if [ -d /var/opensim-www ]; then |
echo "[OpenSim] Updating website..." |
echo "[SpectacledOwl] Updating website..." |
cd /var/opensim-www/ |
svn update |
chown -R www-data:www-data /var/opensim-www |
service lighttpd restart |
fi |
echo "[OpenSim] Deploying tools..." |
popd |
echo "[SpectacledOwl] Deploying tools..." |
if [ -x osstrap ]; then |
cp osstrap /etc/init.d/osstrap |
fi |
@@ -46,11 +47,10 @@ |
if [ -x iardumper ]; then |
cp iardumper /etc/cron.daily/iardumper |
fi |
echo "[OpenSim] Applying firewall..." |
echo "[SpectacledOwl] Applying firewall..." |
if [ -x firewall ]; then |
./firewall |
fi |
echo "[OpenSim] Restarting OpenSim." |
echo "[SpectacledOwl] Restarting SpectacledOwl." |
kill -s HUP `pidof mono` |
echo "[OpenSim] Done." |
popd |
echo "[SpectacledOwl] Done." |