mirror of
https://github.com/YunoHost-Apps/jupyterlab_ynh.git
synced 2024-09-03 19:26:35 +02:00
Merge pull request #41 from ericgaspar/permission-for-pip-install-#35
Permission for pip install #35
This commit is contained in:
commit
81f7c6bddc
3 changed files with 7 additions and 7 deletions
|
@ -160,8 +160,8 @@ ynh_store_file_checksum --file="$final_path/config/jupyter_notebook_config.py"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R root: $final_path
|
chown -R root: $final_path/
|
||||||
chown -R $admin: $final_path/.venv/share
|
chown -R $admin: $final_path/.venv/lib
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
|
|
|
@ -62,8 +62,8 @@ ynh_restore_file --origin_path="$final_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Restore permissions on app files
|
# Restore permissions on app files
|
||||||
chown -R root: $final_path
|
chown -R $admin: $final_path/
|
||||||
chown -R $admin: $final_path/.venv/share
|
chmod -R 755 $final_path/.venv/
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC RESTORATION
|
# SPECIFIC RESTORATION
|
||||||
|
|
|
@ -116,7 +116,7 @@ then
|
||||||
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
|
|
||||||
PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyterhub-ldapauthenticator --three
|
PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyterhub-ldapauthenticator
|
||||||
|
|
||||||
ynh_exec_warn_less python3 -m pipenv run jupyterhub upgrade-db
|
ynh_exec_warn_less python3 -m pipenv run jupyterhub upgrade-db
|
||||||
|
|
||||||
|
@ -170,8 +170,8 @@ ynh_add_systemd_config
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions on app files
|
# Set permissions on app files
|
||||||
chown -R root: $final_path
|
chown -R $admin: $final_path/
|
||||||
chown -R $admin: $final_path/.venv/share
|
chmod -R 755 $final_path/.venv/
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
Loading…
Reference in a new issue