anchor.diff:  #	echo "Invalid secret_dir parameter, doesn't look like a path: $8"
   #	exit 4
   #    fi
  -
  -    sudo chown -R <%= node['hopsworks']['user'] %>:<%= node['jupyter']['group'] %> $8/..
  -    sudo chmod 0730 $8/..
  +    
  +    parent=$(dirname $8)
  +    sudo chown -R <%= node['hopsworks']['user'] %>:<%= node['jupyter']['group'] %> $parent
  +    sudo chmod 0730 $parent
       sudo mkdir -p $8
       if [ $? -ne 0 ] ; then
   	echo "Error: could not create private_dir: $8"
  
positive.code:     kill -0 $2
  elif [ "$1" == "list" ] ; then
  
      sudo ps -ef | grep jupyter-notebook | awk '{print $2}' > /tmp/jupyterNotebookServer.pids
  elif [ "$1" == "killhard" ] ; then
  
      sudo kill -9 $PID 2>&1 > /dev/null
  
negative.code: 
  help() {
      echo ""
      echo "usage: $0 [start jupyter_home hadoop_home java_home anaconda_env port logfile secret_dir] | [kill jupyter_home pid port] | [ping pid] | [list] | [killhard pid]"
      echo ""
      exit 1
  }
  