2014-08-06 09:43:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
wget http://dygraphs.com/dygraph-combined.js -O ./static/js/dygraph-combined.js
|
|
|
|
|
2016-09-15 19:14:55 +00:00
|
|
|
SBADMIN_VERSION='3.3.7'
|
2019-02-05 16:16:44 +00:00
|
|
|
BOOTSTRAP_VERSION='4.2.1'
|
2019-02-08 16:16:58 +00:00
|
|
|
FONT_AWESOME_VERSION='5.7.1'
|
2018-06-29 13:52:13 +00:00
|
|
|
D3_JS_VERSION='5.5.0'
|
2014-08-06 09:43:40 +00:00
|
|
|
|
|
|
|
rm -rf temp
|
|
|
|
mkdir temp
|
|
|
|
|
2019-02-05 16:16:44 +00:00
|
|
|
wget https://github.com/twbs/bootstrap/releases/download/v${BOOTSTRAP_VERSION}/bootstrap-${BOOTSTRAP_VERSION}-dist.zip -O temp/bootstrap${BOOTSTRAP_VERSION}.zip
|
2019-02-15 16:00:07 +00:00
|
|
|
wget https://github.com/FezVrasta/popper.js/archive/v1.14.3.zip -O temp/popper.zip
|
2016-07-20 12:11:39 +00:00
|
|
|
wget https://github.com/BlackrockDigital/startbootstrap-sb-admin/archive/v${SBADMIN_VERSION}.zip -O temp/${SBADMIN_VERSION}.zip
|
2016-09-15 19:14:55 +00:00
|
|
|
wget https://github.com/BlackrockDigital/startbootstrap-sb-admin-2/archive/v${SBADMIN_VERSION}.zip -O temp/${SBADMIN_VERSION}-2.zip
|
2019-02-08 16:16:58 +00:00
|
|
|
wget https://github.com/FortAwesome/Font-Awesome/archive/v4.7.0.zip -O temp/FONT_AWESOME_4.7.0.zip
|
|
|
|
wget https://github.com/FortAwesome/Font-Awesome/archive/5.7.1.zip -O temp/FONT_AWESOME_${FONT_AWESOME_VERSION}.zip
|
2018-06-29 13:52:13 +00:00
|
|
|
wget https://github.com/d3/d3/releases/download/v${D3_JS_VERSION}/d3.zip -O temp/d3_${D3_JS_VERSION}.zip
|
2018-07-05 11:58:40 +00:00
|
|
|
|
|
|
|
# dateRangePicker
|
|
|
|
wget https://github.com/moment/moment/archive/2.22.2.zip -O temp/moment_2.22.2.zip
|
|
|
|
wget https://github.com/longbill/jquery-date-range-picker/archive/v0.18.0.zip -O temp/daterangepicker_v0.18.0.zip
|
|
|
|
|
2019-02-05 16:16:44 +00:00
|
|
|
unzip temp/bootstrap${BOOTSTRAP_VERSION}.zip -d temp/
|
2019-02-15 16:00:07 +00:00
|
|
|
unzip temp/popper.zip -d temp/
|
2016-07-20 12:11:39 +00:00
|
|
|
unzip temp/${SBADMIN_VERSION}.zip -d temp/
|
2016-09-15 19:14:55 +00:00
|
|
|
unzip temp/${SBADMIN_VERSION}-2.zip -d temp/
|
2019-02-08 16:16:58 +00:00
|
|
|
unzip temp/FONT_AWESOME_4.7.0.zip -d temp/
|
2018-05-31 08:07:23 +00:00
|
|
|
unzip temp/FONT_AWESOME_${FONT_AWESOME_VERSION}.zip -d temp/
|
2018-06-29 13:52:13 +00:00
|
|
|
unzip temp/d3_${D3_JS_VERSION}.zip -d temp/
|
2018-07-05 11:58:40 +00:00
|
|
|
|
|
|
|
unzip temp/moment_2.22.2.zip -d temp/
|
|
|
|
unzip temp/daterangepicker_v0.18.0.zip -d temp/
|
|
|
|
|
2019-02-07 16:22:44 +00:00
|
|
|
mv temp/bootstrap-${BOOTSTRAP_VERSION}-dist/js/bootstrap.min.js ./static/js/bootstrap4.min.js
|
2019-02-15 16:00:07 +00:00
|
|
|
mv temp/bootstrap-${BOOTSTRAP_VERSION}-dist/js/bootstrap.min.js.map ./static/js/bootstrap.min.js.map
|
2019-02-07 16:22:44 +00:00
|
|
|
mv temp/bootstrap-${BOOTSTRAP_VERSION}-dist/css/bootstrap.min.css ./static/css/bootstrap4.min.css
|
|
|
|
mv temp/bootstrap-${BOOTSTRAP_VERSION}-dist/css/bootstrap.min.css.map ./static/css/bootstrap4.min.css.map
|
2019-02-05 16:16:44 +00:00
|
|
|
|
2019-02-15 16:00:07 +00:00
|
|
|
mv temp/popper.js-1.14.3/dist/umd/popper.min.js ./static/js/
|
|
|
|
mv temp/popper.js-1.14.3/dist/umd/popper.min.js.map ./static/js/
|
|
|
|
|
2016-09-15 19:14:55 +00:00
|
|
|
mv temp/startbootstrap-sb-admin-${SBADMIN_VERSION} temp/sb-admin
|
|
|
|
mv temp/startbootstrap-sb-admin-2-${SBADMIN_VERSION} temp/sb-admin-2
|
2019-02-08 16:16:58 +00:00
|
|
|
mv temp/Font-Awesome-4.7.0 temp/font-awesome
|
|
|
|
|
|
|
|
mv temp/Font-Awesome-${FONT_AWESOME_VERSION}/css/all.min.css ./static/css/font-awesome.min.css
|
|
|
|
mv temp/Font-Awesome-${FONT_AWESOME_VERSION}/webfonts ./static/webfonts
|
2016-07-20 12:11:39 +00:00
|
|
|
|
|
|
|
rm -rf ./static/js/plugins
|
2016-09-15 19:14:55 +00:00
|
|
|
mv temp/sb-admin/js/* ./static/js/
|
2016-07-20 12:11:39 +00:00
|
|
|
|
|
|
|
rm -rf ./static/fonts/ ./static/font-awesome/
|
2016-09-15 19:14:55 +00:00
|
|
|
mv temp/sb-admin/fonts/ ./static/
|
2018-05-31 08:07:23 +00:00
|
|
|
mv temp/font-awesome/ ./static/
|
2016-07-20 12:11:39 +00:00
|
|
|
|
|
|
|
rm -rf ./static/css/plugins/
|
2016-09-15 19:14:55 +00:00
|
|
|
mv temp/sb-admin/css/* ./static/css/
|
|
|
|
mv temp/sb-admin-2/dist/css/* ./static/css/
|
2018-07-05 11:58:40 +00:00
|
|
|
mv temp/jquery-date-range-picker-0.18.0/dist/daterangepicker.min.css ./static/css/
|
2016-07-20 12:11:39 +00:00
|
|
|
|
2018-06-29 13:52:13 +00:00
|
|
|
mv temp/d3.min.js ./static/js/
|
2018-07-05 11:58:40 +00:00
|
|
|
mv temp/moment-2.22.2/min/moment.min.js ./static/js/
|
|
|
|
mv temp/jquery-date-range-picker-0.18.0/dist/jquery.daterangepicker.min.js ./static/js/
|
2018-06-29 13:52:13 +00:00
|
|
|
|
2016-07-20 12:11:39 +00:00
|
|
|
rm -rf temp
|
2014-08-06 09:43:40 +00:00
|
|
|
|
2016-07-19 16:07:29 +00:00
|
|
|
JQVERSION="1.12.4"
|
2014-08-06 09:43:40 +00:00
|
|
|
wget http://code.jquery.com/jquery-${JQVERSION}.js -O ./static/js/jquery.js
|
|
|
|
|
2016-07-08 07:04:19 +00: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
|
|
|
|
|
2019-02-05 16:16:44 +00:00
|
|
|
wget https://cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css -O ./static/css/dataTables.bootstrap4.min.css
|
|
|
|
wget https://cdn.datatables.net/1.10.18/js/dataTables.bootstrap4.min.js -O ./static/js/dataTables.bootstrap4.min.js
|
|
|
|
|
2016-07-19 14:49:57 +00:00
|
|
|
#Ressource for graph
|
2019-02-04 13:56:54 +00:00
|
|
|
wget https://raw.githubusercontent.com/flot/flot/958e5fd43c6dff4bab3e1fd5cb6109df5c1e8003/jquery.flot.js -O ./static/js/jquery.flot.js
|
|
|
|
wget https://raw.githubusercontent.com/flot/flot/958e5fd43c6dff4bab3e1fd5cb6109df5c1e8003/jquery.flot.pie.js -O ./static/js/jquery.flot.pie.js
|
|
|
|
wget https://raw.githubusercontent.com/flot/flot/958e5fd43c6dff4bab3e1fd5cb6109df5c1e8003/jquery.flot.time.js -O ./static/js/jquery.flot.time.js
|
|
|
|
wget https://raw.githubusercontent.com/flot/flot/958e5fd43c6dff4bab3e1fd5cb6109df5c1e8003/jquery.flot.stack.js -O ./static/js/jquery.flot.stack.js
|
2016-08-17 09:04:48 +00:00
|
|
|
|
2016-08-26 09:10:39 +00:00
|
|
|
#Ressources for sparkline and canvasJS and slider
|
2016-08-17 09:04:48 +00:00
|
|
|
wget http://omnipotent.net/jquery.sparkline/2.1.2/jquery.sparkline.min.js -O ./static/js/jquery.sparkline.min.js
|
2016-08-26 09:10:39 +00:00
|
|
|
mkdir temp
|
2016-08-17 09:04:48 +00:00
|
|
|
wget http://canvasjs.com/fdm/chart/ -O temp/canvasjs.zip
|
|
|
|
unzip temp/canvasjs.zip -d temp/
|
2017-12-14 10:47:11 +00:00
|
|
|
mv temp/jquery.canvasjs.min.js ./static/js/jquery.canvasjs.min.js
|
2016-08-26 09:10:39 +00: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 16:05:18 +00:00
|
|
|
mv temp/jquery-ui-1.12.0/jquery-ui.min.css ./static/css/jquery-ui.min.css
|
2016-08-17 09:04:48 +00:00
|
|
|
rm -rf temp
|
2016-07-19 14:49:57 +00:00
|
|
|
|
2014-12-22 17:08:02 +00:00
|
|
|
mkdir -p ./static/image
|
2016-07-20 12:11:39 +00:00
|
|
|
pushd static/image
|
2014-12-22 17:08:02 +00:00
|
|
|
wget https://www.circl.lu/assets/images/logos/AIL.png -O AIL.png
|
2016-07-20 12:11:39 +00:00
|
|
|
popd
|
2018-05-31 08:07:23 +00:00
|
|
|
|
|
|
|
#active virtualenv
|
2018-05-31 11:53:29 +00:00
|
|
|
source ./../../AILENV/bin/activate
|
2018-05-31 08:07:23 +00:00
|
|
|
#Update MISP Taxonomies and Galaxies
|
2018-11-06 16:04:02 +00:00
|
|
|
python3 -m pip install git+https://github.com/MISP/PyTaxonomies --upgrade
|
|
|
|
python3 -m pip install git+https://github.com/MISP/PyMISPGalaxies --upgrade
|
2018-06-19 09:31:30 +00:00
|
|
|
|
|
|
|
#Update PyMISP
|
2018-11-06 16:04:02 +00:00
|
|
|
python3 -m pip install git+https://github.com/MISP/PyMISP --upgrade
|
2018-06-19 09:31:30 +00:00
|
|
|
|
|
|
|
#Update the Hive
|
2018-11-06 16:04:02 +00:00
|
|
|
python3 -m pip install git+https://github.com/TheHive-Project/TheHive4py --upgrade
|