Skip to content

Commit

Permalink
Fix $NOTEBOOK_HOME error
Browse files Browse the repository at this point in the history
  • Loading branch information
chncaesar committed Jul 30, 2023
1 parent dc4a59a commit a039d21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/startup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

dir=$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)
dir=$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd -P)
pid=${dir}/pid

export NOTEBOOK_HOME=${dir}
Expand All @@ -10,11 +10,11 @@ HANG_UP_FLAG=${1:-nohup}
if [[ "${HANG_UP_FLAG}" == "nohup" ]]; then
echo "====================================="
echo "Nohup startup Byzer Notebook."
nohup java -DNOTEBOOK_HOME=${NOTEBOOK_HOME} -Dspring.config.name=application,notebook -Dspring.config.location=classpath:/,file:${NOTEBOOK_HOME}/conf/ -jar ${NOTEBOOK_HOME}/notebook-console.jar > ${NOTEBOOK_HOME}/logs/notebook.log 2>&1 &
nohup java -DNOTEBOOK_HOME=${NOTEBOOK_HOME} -Dspring.config.name=application,notebook -Dspring.config.location=classpath:/,file:${NOTEBOOK_HOME}/conf/ -jar ${NOTEBOOK_HOME}/lib/notebook-console.jar > ${NOTEBOOK_HOME}/logs/notebook.log 2>&1 &
echo "$!" > ${pid}
echo "success"
elif [[ "${HANG_UP_FLAG}" == "hangup" ]];then
echo "====================================="
echo "startup byzer notebook."
java -DNOTEBOOK_HOME=${NOTEBOOK_HOME} -Dspring.config.name=application,notebook -Dspring.config.location=classpath:/,file:${NOTEBOOK_HOME}/conf/ -jar ${NOTEBOOK_HOME}/notebook-console.jar
java -DNOTEBOOK_HOME=${NOTEBOOK_HOME} -Dspring.config.name=application,notebook -Dspring.config.location=classpath:/,file:${NOTEBOOK_HOME}/conf/ -jar ${NOTEBOOK_HOME}/lib/notebook-console.jar
fi

0 comments on commit a039d21

Please sign in to comment.