use loading page

This commit is contained in:
j 2014-08-05 18:04:44 +02:00
parent d4ad1466be
commit 792afe0824
2 changed files with 10 additions and 6 deletions

11
ctl
View File

@ -73,11 +73,12 @@ if [ "$1" == "restart" ]; then
fi
fi
if [ "$1" == "open" ]; then
"$0" start &
#time to switch to python and use webbrowser.open_tab?
if [ $SYSTEM == "Darwin" ]; then
open "http://$HOST/"
open "$BASE/$NAME/static/html/load.html"
else
xdg-open "http://$HOST/"
xdg-open "$BASE/$NAME/static/html/load.html"
fi
exit 0
fi
@ -97,10 +98,10 @@ if [ "$1" == "update" ]; then
cd "$BASE/$NAME"
git pull
find . -name '*.pyc' -exec rm "{}" \;
$0 setup
$0 update_static > /dev/null
"$0" setup
"$0" update_static > /dev/null
NEW=`"$0" version`
$0 postupdate -o $OLD -n $NEW
"$0" postupdate -o $OLD -n $NEW
else
python2 oml update
fi

View File

@ -16,8 +16,11 @@
};
load();
setTimeout(function() {
load();
setTimeout(function() {
document.body.innerHTML = 'Looks like Open Media Library is not running.';
}, 10000);
}, 10000);
}, 3000);
</script>
</body>
</html>