You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
556 B
Bash
28 lines
556 B
Bash
#!/usr/bin/env sh
|
|
|
|
echo "Instalalting ${MODULE_NAME}..."
|
|
|
|
# check if jupyterlab is installed
|
|
if ! command -v jupyterlab &> /dev/null then
|
|
# install jupyterlab
|
|
# check if python3 pip is installed
|
|
if ! command -v pip3 &> /dev/null then
|
|
echo "pip3 is not installed"
|
|
echo "Please install pip3 and try again"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
"
|
|
|
|
echo "Starting ${MODULE_NAME}..."
|
|
# Start the app in here
|
|
# 1. Use & to run it in background
|
|
# 2. redirct stdout and stderr to log files
|
|
|
|
./app >${LOG_PATH} 2>&1 &
|
|
|
|
echo "Sample app started!"
|