From d2557aae9a070e6c820a2399d5aa11d97777d6d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 20 Jul 2016 14:11:39 +0200 Subject: [PATCH] Update web thirdparty modules --- var/www/update_thirdparty.sh | 39 +++++++++++++++++------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/var/www/update_thirdparty.sh b/var/www/update_thirdparty.sh index 0e192ae7..97a976e5 100755 --- a/var/www/update_thirdparty.sh +++ b/var/www/update_thirdparty.sh @@ -4,15 +4,26 @@ set -e wget http://dygraphs.com/dygraph-combined.js -O ./static/js/dygraph-combined.js -SBADMIN_VERSION=2 -filename="sb-admin-${SBADMIN_VERSION}" +SBADMIN_VERSION='1.0.4' rm -rf temp mkdir temp -wget https://github.com/IronSummitMedia/startbootstrap-sb-admin-2/archive/v1.0.2.zip -O temp/${filename}".zip" -unzip temp/${filename}".zip" -d temp/ -mv temp/startbootstrap-sb-admin-2-1.0.2 temp/sb-admin-2 +wget https://github.com/BlackrockDigital/startbootstrap-sb-admin/archive/v${SBADMIN_VERSION}.zip -O temp/${SBADMIN_VERSION}.zip +unzip temp/${SBADMIN_VERSION}.zip -d temp/ +mv temp/startbootstrap-sb-admin-${SBADMIN_VERSION} temp/sb-admin-2 + +rm -rf ./static/js/plugins +mv temp/sb-admin-2/js/* ./static/js/ + +rm -rf ./static/fonts/ ./static/font-awesome/ +mv temp/sb-admin-2/fonts/ ./static/ +mv temp/sb-admin-2/font-awesome/ ./static/ + +rm -rf ./static/css/plugins/ +mv temp/sb-admin-2/css/* ./static/css/ + +rm -rf temp JQVERSION="1.12.4" wget http://code.jquery.com/jquery-${JQVERSION}.js -O ./static/js/jquery.js @@ -26,21 +37,7 @@ wget https://cdn.datatables.net/plug-ins/1.10.7/integration/bootstrap/3/dataTabl wget https://raw.githubusercontent.com/flot/flot/master/jquery.flot.js -O ./static/js/jquery.flot.js wget https://raw.githubusercontent.com/flot/flot/master/jquery.flot.pie.js -O ./static/js/jquery.flot.pie.js -rm -rf ./static/js/plugins -mv temp/${filename}/js/* ./static/js/ - -rm -rf ./static/fonts/ ./static/font-awesome-4.1.0/ - -mv temp/${filename}/fonts/ ./static/ -mv temp/${filename}/font-awesome/ ./static/ - -rm -rf ./static/css/plugins/ -mv temp/${filename}/css/* ./static/css/ - -rm -rf temp/ mkdir -p ./static/image -cd static/image +pushd static/image wget https://www.circl.lu/assets/images/logos/AIL.png -O AIL.png - -cd ../.. - +popd