opensim-tools

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 28  →  ?path2? @ 29
/lib/upgrade-spectacled-owl
@@ -41,7 +41,7 @@
cd ../opensim-www/
svn update
dialog --yesno "This option will update the Spectacled Owl's OpenSim website pages. These pages are the ones that you see when logging-in to the Spectacled Owl and allow the web-based management of the Spectacled Owl. If you have made changes to the pages located in /var/opensim-www, you should make a backup and say yes. Do you want to upgrade the Spectacled Owl website pages?" 10 70
if [ $? == "0"]; then
if [ $? == "0" ]; then
echo "[SpectacledOwl] Updating website..."
cp -R * /var/www/
chown -R www-data:www-data /var/opensim-www
@@ -59,12 +59,13 @@
cp lib/iardumper /etc/cron.daily/iardumper
fi
fi
dialog --yesno "Apply the latest firewall changes? The firewall rules can be found in the opensim-tools/lib/firewall file and consist of a rudiementary set of protections for the Spectacled Owl. If you have made changes to ports and are now managing the firewall by yourself, the safe choice is no. Otherwise, please select yes." 10 70
if [ -x lib/firewall ] && [ $? == "0" ]; then
echo "[SpectacledOwl] Applying firewall..."
lib/firewall
if [ -x lib/firewall ]; then
dialog --yesno "Apply the latest firewall changes? The firewall rules can be found in the opensim-tools/lib/firewall file and consist of a rudiementary set of protections for the Spectacled Owl. If you have made changes to ports and are now managing the firewall by yourself, the safe choice is no. Otherwise, please select yes." 10 70
if [ $? == "0" ]; then
echo "[SpectacledOwl] Applying firewall..."
lib/firewall
fi
fi
echo "[SpectacledOwl] Restarting SpectacledOwl."
kill -s HUP `pidof mono`
echo "[SpectacledOwl] Done."