2014-08-06 11:43:40 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
wget http://dygraphs.com/dygraph-combined.js -O ./static/js/dygraph-combined.js
|
|
|
|
|
2016-09-15 21:14:55 +02:00
|
|
|
SBADMIN_VERSION='3.3.7'
|
2018-05-31 10:07:23 +02:00
|
|
|
FONT_AWESOME_VERSION='4.7.0'
|
2014-08-06 11:43:40 +02:00
|
|
|
|
|
|
|
rm -rf temp
|
|
|
|
mkdir temp
|
|
|
|
|
2016-07-20 14:11:39 +02:00
|
|
|
wget https://github.com/BlackrockDigital/startbootstrap-sb-admin/archive/v${SBADMIN_VERSION}.zip -O temp/${SBADMIN_VERSION}.zip
|
2016-09-15 21:14:55 +02:00
|
|
|
wget https://github.com/BlackrockDigital/startbootstrap-sb-admin-2/archive/v${SBADMIN_VERSION}.zip -O temp/${SBADMIN_VERSION}-2.zip
|
2018-05-31 10:07:23 +02:00
|
|
|
wget https://github.com/FortAwesome/Font-Awesome/archive/v${FONT_AWESOME_VERSION}.zip -O temp/FONT_AWESOME_${FONT_AWESOME_VERSION}.zip
|
2016-07-20 14:11:39 +02:00
|
|
|
unzip temp/${SBADMIN_VERSION}.zip -d temp/
|
2016-09-15 21:14:55 +02:00
|
|
|
unzip temp/${SBADMIN_VERSION}-2.zip -d temp/
|
2018-05-31 10:07:23 +02:00
|
|
|
unzip temp/FONT_AWESOME_${FONT_AWESOME_VERSION}.zip -d temp/
|
2016-09-15 21:14:55 +02:00
|
|
|
mv temp/startbootstrap-sb-admin-${SBADMIN_VERSION} temp/sb-admin
|
|
|
|
mv temp/startbootstrap-sb-admin-2-${SBADMIN_VERSION} temp/sb-admin-2
|
2018-05-31 10:07:23 +02:00
|
|
|
mv temp/Font-Awesome-${FONT_AWESOME_VERSION} temp/font-awesome
|
2016-07-20 14:11:39 +02:00
|
|
|
|
|
|
|
rm -rf ./static/js/plugins
|
2016-09-15 21:14:55 +02:00
|
|
|
mv temp/sb-admin/js/* ./static/js/
|
2016-07-20 14:11:39 +02:00
|
|
|
|
|
|
|
rm -rf ./static/fonts/ ./static/font-awesome/
|
2016-09-15 21:14:55 +02:00
|
|
|
mv temp/sb-admin/fonts/ ./static/
|
2018-05-31 10:07:23 +02:00
|
|
|
mv temp/font-awesome/ ./static/
|
2016-07-20 14:11:39 +02:00
|
|
|
|
|
|
|
rm -rf ./static/css/plugins/
|
2016-09-15 21:14:55 +02:00
|
|
|
mv temp/sb-admin/css/* ./static/css/
|
|
|
|
mv temp/sb-admin-2/dist/css/* ./static/css/
|
2016-07-20 14:11:39 +02:00
|
|
|
|
|
|
|
rm -rf temp
|
2014-08-06 11:43:40 +02:00
|
|
|
|
2016-07-19 18:07:29 +02:00
|
|
|
JQVERSION="1.12.4"
|
2014-08-06 11:43:40 +02:00
|
|
|
wget http://code.jquery.com/jquery-${JQVERSION}.js -O ./static/js/jquery.js
|
|
|
|
|
2016-07-08 09:04:19 +02:00
|
|
|
#Ressources for dataTable
|
|
|
|
wget https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js -O ./static/js/jquery.dataTables.min.js
|
|
|
|
wget https://cdn.datatables.net/plug-ins/1.10.7/integration/bootstrap/3/dataTables.bootstrap.css -O ./static/css/dataTables.bootstrap.css
|
|
|
|
wget https://cdn.datatables.net/plug-ins/1.10.7/integration/bootstrap/3/dataTables.bootstrap.js -O ./static/js/dataTables.bootstrap.js
|
|
|
|
|
2016-07-19 16:49:57 +02:00
|
|
|
#Ressource for graph
|
|
|
|
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
|
2016-07-21 16:35:49 +02:00
|
|
|
wget https://raw.githubusercontent.com/flot/flot/master/jquery.flot.time.js -O ./static/js/jquery.flot.time.js
|
2016-08-17 11:04:48 +02:00
|
|
|
wget https://raw.githubusercontent.com/flot/flot/master/jquery.flot.stack.js -O ./static/js/jquery.flot.stack.js
|
|
|
|
|
2016-08-26 11:10:39 +02:00
|
|
|
#Ressources for sparkline and canvasJS and slider
|
2016-08-17 11:04:48 +02:00
|
|
|
wget http://omnipotent.net/jquery.sparkline/2.1.2/jquery.sparkline.min.js -O ./static/js/jquery.sparkline.min.js
|
2016-08-26 11:10:39 +02:00
|
|
|
mkdir temp
|
2016-08-17 11:04:48 +02:00
|
|
|
wget http://canvasjs.com/fdm/chart/ -O temp/canvasjs.zip
|
|
|
|
unzip temp/canvasjs.zip -d temp/
|
2017-12-14 11:47:11 +01:00
|
|
|
mv temp/jquery.canvasjs.min.js ./static/js/jquery.canvasjs.min.js
|
2016-08-26 11:10:39 +02:00
|
|
|
|
|
|
|
wget https://jqueryui.com/resources/download/jquery-ui-1.12.0.zip -O temp/jquery-ui.zip
|
|
|
|
unzip temp/jquery-ui.zip -d temp/
|
|
|
|
mv temp/jquery-ui-1.12.0/jquery-ui.min.js ./static/js/jquery-ui.min.js
|
2016-08-26 18:05:18 +02:00
|
|
|
mv temp/jquery-ui-1.12.0/jquery-ui.min.css ./static/css/jquery-ui.min.css
|
2016-08-17 11:04:48 +02:00
|
|
|
rm -rf temp
|
2016-07-19 16:49:57 +02:00
|
|
|
|
2014-12-22 18:08:02 +01:00
|
|
|
mkdir -p ./static/image
|
2016-07-20 14:11:39 +02:00
|
|
|
pushd static/image
|
2014-12-22 18:08:02 +01:00
|
|
|
wget https://www.circl.lu/assets/images/logos/AIL.png -O AIL.png
|
2016-07-20 14:11:39 +02:00
|
|
|
popd
|
2018-05-31 10:07:23 +02:00
|
|
|
|
|
|
|
#active virtualenv
|
|
|
|
. ./../../AILENV/bin/activate
|
|
|
|
#Update MISP Taxonomies and Galaxies
|
|
|
|
pip3 install --upgrade git+https://github.com/MISP/PyTaxonomies
|
|
|
|
pip3 install --upgrade git+https://github.com/MISP/PyMISPGalaxies
|