mirror of https://github.com/MISP/misp-dashboard
Updating install script
parent
f8e1725a22
commit
254141ecb1
|
@ -21,6 +21,8 @@ if [ ! -f config/config.cfg ]; then
|
||||||
cp config/config.cfg.sample config/config.cfg
|
cp config/config.cfg.sample config/config.cfg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cp -i config/config.cfg.default config/config.cfg
|
||||||
|
|
||||||
## Web stuff
|
## Web stuff
|
||||||
pushd static/
|
pushd static/
|
||||||
mkdir -p css fonts js
|
mkdir -p css fonts js
|
||||||
|
@ -33,14 +35,16 @@ wget http://www.misp-project.org/assets/images/misp-small.png -O static/pics/MIS
|
||||||
JQVERSION="3.2.1"
|
JQVERSION="3.2.1"
|
||||||
wget http://code.jquery.com/jquery-${JQVERSION}.min.js -O ./static/js/jquery.min.js
|
wget http://code.jquery.com/jquery-${JQVERSION}.min.js -O ./static/js/jquery.min.js
|
||||||
|
|
||||||
|
# jquery flot
|
||||||
FLOTVERSION="0.8.3"
|
FLOTVERSION="0.8.3"
|
||||||
wget http://www.flotcharts.org/downloads/flot-${FLOTVERSION}.zip -O ./temp/flot-${FLOTVERSION}.zip
|
wget http://www.flotcharts.org/downloads/flot-${FLOTVERSION}.zip -O ./temp/flot-${FLOTVERSION}.zip
|
||||||
unzip -o temp/flot-${FLOTVERSION}.zip -d temp/
|
unzip -o temp/flot-${FLOTVERSION}.zip -d temp/
|
||||||
mv temp/flot/jquery.flot.js ./static/js
|
mv temp/flot/jquery.flot.js ./static/js
|
||||||
mv temp/flot/jquery.flot.pie.min.js ./static/js
|
mv temp/flot/jquery.flot.pie.min.js ./static/js
|
||||||
mv temp/flot/jquery.flot.resize.js ./static/js
|
mv temp/flot/jquery.flot.resize.js ./static/js
|
||||||
|
mv temp/flot/jquery.flot.time.js ./static/js
|
||||||
|
|
||||||
|
# jquery UI
|
||||||
JQUERYUIVERSION="1.12.1"
|
JQUERYUIVERSION="1.12.1"
|
||||||
wget https://jqueryui.com/resources/download/jquery-ui-${JQUERYUIVERSION}.zip -O temp/jquery-ui.zip
|
wget https://jqueryui.com/resources/download/jquery-ui-${JQUERYUIVERSION}.zip -O temp/jquery-ui.zip
|
||||||
unzip -o temp/jquery-ui.zip -d temp/
|
unzip -o temp/jquery-ui.zip -d temp/
|
||||||
|
@ -64,6 +68,8 @@ unzip -o temp/${SBADMIN_VERSION}-2.zip -d temp/
|
||||||
mv temp/startbootstrap-sb-admin-2-${SBADMIN_VERSION}/dist/js/* ./static/js/
|
mv temp/startbootstrap-sb-admin-2-${SBADMIN_VERSION}/dist/js/* ./static/js/
|
||||||
mv temp/startbootstrap-sb-admin-2-${SBADMIN_VERSION}/dist/css/* ./static/css/
|
mv temp/startbootstrap-sb-admin-2-${SBADMIN_VERSION}/dist/css/* ./static/css/
|
||||||
mv temp/startbootstrap-sb-admin-2-${SBADMIN_VERSION}/bower_components/font-awesome/fonts/* ./static/fonts
|
mv temp/startbootstrap-sb-admin-2-${SBADMIN_VERSION}/bower_components/font-awesome/fonts/* ./static/fonts
|
||||||
|
mv temp/startbootstrap-sb-admin-2-${SBADMIN_VERSION}/bower_components/font-awesome/css/* ./static/css
|
||||||
|
mv temp/startbootstrap-sb-admin-2-${SBADMIN_VERSION}/bower_components/bootstrap/fonts/* ./static/fonts
|
||||||
|
|
||||||
# leaflet
|
# leaflet
|
||||||
LEAFLET_VERSION="1.2.0"
|
LEAFLET_VERSION="1.2.0"
|
||||||
|
@ -88,17 +94,16 @@ pushd data
|
||||||
wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz -O GeoLite2-City.tar.gz
|
wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz -O GeoLite2-City.tar.gz
|
||||||
tar xvfz GeoLite2-City.tar.gz
|
tar xvfz GeoLite2-City.tar.gz
|
||||||
rm -rf GeoLite2-City.tar.gz
|
rm -rf GeoLite2-City.tar.gz
|
||||||
|
popd
|
||||||
|
|
||||||
# DataTable
|
# DataTable
|
||||||
DATATABLE_VERSION="1.10.16"
|
DATATABLE_VERSION="1.10.16"
|
||||||
wget https://datatables.net/download/builder?dt/dt-${DATATABLE_VERSION}.zip -O temp/DataTables.zip
|
wget https://cdn.datatables.net/${DATATABLE_VERSION}/js/jquery.dataTables.min.js -O ./static/js/jquery.dataTables.min.js
|
||||||
unzip -o temp/DataTables.zip -d temp/
|
wget https://cdn.datatables.net/${DATATABLE_VERSION}/css/dataTables.bootstrap.css -O ./static/css/dataTables.bootstrap.css
|
||||||
mv temp/DataTables/${DATATABLE_VERSION}/css/dataTables.bootstrap.css ./static/css
|
wget https://cdn.datatables.net/${DATATABLE_VERSION}/js/dataTables.bootstrap.js -O ./static/js/dataTables.bootstrap.js
|
||||||
mv temp/DataTables/${DATATABLE_VERSION}/js/jquery.dataTables.min.js ./static/js
|
|
||||||
mv temp/DataTables/${DATATABLE_VERSION}/js/dataTables.bootstrap.js ./static/js
|
|
||||||
|
|
||||||
#typeahead
|
#typeahead
|
||||||
git clone https://github.com/bassjobsen/Bootstrap-3-Typeahead.git temp/
|
git clone https://github.com/bassjobsen/Bootstrap-3-Typeahead.git temp/Bootstrap-3-Typeahead
|
||||||
mv temp/Bootstrap-3-Typeahead/bootstrap3-typeahead.min.js ./static/js
|
mv temp/Bootstrap-3-Typeahead/bootstrap3-typeahead.min.js ./static/js
|
||||||
|
|
||||||
rm -rf ./temp
|
rm -rf ./temp
|
||||||
|
|
Loading…
Reference in New Issue