mirror of
https://github.com/YunoHost-Apps/jupyterlab_ynh.git
synced 2024-09-03 19:26:35 +02:00
Change permissions temporarily during python setup step
This commit is contained in:
parent
1415539bdd
commit
9fad372003
2 changed files with 5 additions and 2 deletions
|
@ -16,10 +16,13 @@ jupyterlab_version="3.0.14"
|
|||
#=================================================
|
||||
|
||||
function python_setup {
|
||||
sudo chown -R $app: "$final_path"
|
||||
pushd "$final_path"
|
||||
sudo -u $app PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyterhub-ldapauthenticator pyzmq --three 2>&1
|
||||
sudo -u $app PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyterhub-ldapauthenticator pyzmq --three 2>&1
|
||||
sudo -u $app python3 -m pipenv run jupyterhub upgrade-db 2>&1
|
||||
popd
|
||||
|
||||
set_permissions
|
||||
}
|
||||
|
||||
function set_permissions {
|
||||
|
|
|
@ -38,7 +38,7 @@ ynh_script_progression --message="Ensuring downward compatibility..."
|
|||
|
||||
# If final_path doesn't exist, create it
|
||||
if [ -z "$final_path" ]; then
|
||||
final_path=/opt/$app
|
||||
final_path=/opt/yunohost/$app
|
||||
|
||||
mkdir -p $final_path
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue