1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jupyterlab_ynh.git synced 2024-09-03 19:26:35 +02:00

Update install

This commit is contained in:
Éric Gaspar 2023-02-27 09:50:39 +01:00
parent 03fc88e939
commit 9513f7d210

View file

@ -25,15 +25,23 @@ npm install -g configurable-http-proxy
ynh_script_progression --message="Setting up source files..." --weight=64
# Set permissions to app files
mkdir -p "$install_dir/.venv"
chown -R $app:$app "$install_dir"
chmod -R g=u,g-w,o-rwx "$install_dir"
setfacl -nR -m g:$app.main:rx -m d:g:$app.main:rx "$install_dir/.venv"
setfacl -n -m g:$app.main:x "$install_dir"
# mkdir -p "$install_dir/.venv"
# chown -R $app:$app "$install_dir"
# chmod -R g=u,g-w,o-rwx "$install_dir"
# setfacl -nR -m g:$app.main:rx -m d:g:$app.main:rx "$install_dir/.venv"
# setfacl -n -m g:$app.main:x "$install_dir"
pushd "$install_dir"
sudo -u $app PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyter-server jupyterhub-ldapauthenticator pyzmq sudospawner 2>&1
sudo -u $app python3 -m pipenv run jupyterhub upgrade-db 2>&1
# pushd "$install_dir"
# sudo -u $app PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyter-server jupyterhub-ldapauthenticator pyzmq sudospawner 2>&1
# sudo -u $app python3 -m pipenv run jupyterhub upgrade-db 2>&1
# popd
mkdir -p "$install_dir"
pushd $install_dir
mkdir -p .venv
PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyterhub-ldapauthenticator pyzmq jupyterlab-language-pack-fr-FR
popd
#=================================================