mirror of
https://github.com/YunoHost-Apps/jupyterlab_ynh.git
synced 2024-09-03 19:26:35 +02:00
test arm
This commit is contained in:
parent
6ea9384a9d
commit
605cc55eef
2 changed files with 18 additions and 1 deletions
|
@ -6,6 +6,23 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
config_path="/etc/$app"
|
||||
final_path="/opt/$app"
|
||||
|
||||
#=================================================
|
||||
# DETECT THE SYSTEM ARCHITECTURE
|
||||
#=================================================
|
||||
# Detect the system architecture to download the right file
|
||||
# NOTE: `uname -m` is more accurate and universal than `arch`
|
||||
# See https://en.wikipedia.org/wiki/Uname
|
||||
if [ -n "$(uname -m | grep 64)" ]; then
|
||||
miniconda_architecture="x86_64"
|
||||
elif [ -n "$(uname -m | grep 86)" ]; then
|
||||
miniconda_architecture="x86"
|
||||
elif [ -n "$(uname -m | grep arm)" ]; then
|
||||
miniconda_architecture="armv7l"
|
||||
else
|
||||
ynh_die "Unable to detect your achitecture, please open a bug describing \
|
||||
your hardware and the result of the command \"uname -m\"." 1
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# CREATE FOLDERS
|
||||
#=================================================
|
||||
|
|
|
@ -83,7 +83,7 @@ config_jupyterlab
|
|||
|
||||
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-$miniconda_architecture.sh
|
||||
|
||||
bash Miniconda3-latest-Linux-x86_64.sh -b -p $final_path
|
||||
bash Miniconda3-latest-Linux-$miniconda_architecture.sh -b -p $final_path
|
||||
|
||||
$final_path/bin/conda install -c conda-forge jupyterhub notebook jupyterlab jupyterhub-ldapauthenticator -y
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue