fix: Harden jupyter installation

pull/11/head
Raphaël Vinot 2018-11-20 13:00:44 +01:00 committed by GitHub
parent df0f50d08b
commit 36c0eb4cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -774,7 +774,8 @@ gem install asciidoctor-pdf --pre > /dev/null 2>&1
gem install pygments.rb > /dev/null 2>&1
echo "--- Setting up jupyter notebook ---"
sudo pip3 install jupyter
sudo apt purge -f jupyter-notebook # Do not remove that, we *do not want* the system version
sudo pip3 install -I -U jupyter # Force everything to the latest version
echo $AUTH_KEY > $PATH_TO_MISP/PyMISP/docs/tutorial/apikey
sed -i -e '$i \sudo -u www-data HOME="/var/www/MISP/PyMISP/" /usr/local/bin/jupyter-notebook --port=8889 --ip=0.0.0.0 --no-browser --NotebookApp.token='' --NotebookApp.notebook_dir=/var/www/MISP/PyMISP/docs/tutorial/ --NotebookApp.iopub_data_rate_limit=0 > /tmp/jupyter_rc.local.log &\n' /etc/rc.local