Commit 84d4f283 authored by Sebastian Wahl's avatar Sebastian Wahl

Merge branch 'add-google-chrome-support' into 'master'

allow to set root path of miniconda3, defaults to home
See merge request !10
parents 08e3185c f87668d4
......@@ -104,6 +104,10 @@ ip="127.0.0.1"
[[ $# -eq 3 ]] && ip=$3
[[ "$ip" == "lookup" ]] || [[ $hname =~ mistral ]] && ip="\$(getent hosts \${HOSTNAME} | awk '{print \$1}')"
# set the root path of the miniconda installation, defaults to $HOME
rootpath=$HOME
[[ $# -eq 3 ]] && [[ "$3" =~ "/" ]] && rootpath=$3
if [[ "$task" == "start" ]] || [[ "$task" == "stop" ]]; then
page=$(ssh $hname "\${HOME}/miniconda3/bin/python \${HOME}/miniconda3/bin/jupyter notebook list" | grep http | awk '{print$1}')
port=$(echo $page | awk -F: '{print$3}' | awk -F/ '{print$1}')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment