From 8993e5a4ac95191fca9fa10617261a4ff0cf8867 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 21 Apr 2020 23:05:24 +0200 Subject: [PATCH 1/4] set permission to virtualenv folder --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 606feee..8603af2 100644 --- a/scripts/install +++ b/scripts/install @@ -160,8 +160,8 @@ ynh_store_file_checksum --file="$final_path/config/jupyter_notebook_config.py" #================================================= # Set permissions to app files -chown -R root: $final_path -chown -R $admin: $final_path/.venv/share +chown -R $admin: $final_path/ +chmod -R 755 $final_path/.venv/ #================================================= # ADVERTISE SERVICE IN ADMIN PANEL From d442160f55a5d1adbc8b25343be730c6b6ed3584 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 22 Apr 2020 18:20:01 +0200 Subject: [PATCH 2/4] set permission to virtualenv folder --- scripts/restore | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/restore b/scripts/restore index 81c2f9f..815b937 100644 --- a/scripts/restore +++ b/scripts/restore @@ -62,8 +62,8 @@ ynh_restore_file --origin_path="$final_path" #================================================= # Restore permissions on app files -chown -R root: $final_path -chown -R $admin: $final_path/.venv/share +chown -R $admin: $final_path/ +chmod -R 755 $final_path/.venv/ #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index 8187b58..800d116 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -170,8 +170,8 @@ ynh_add_systemd_config #================================================= # Set permissions on app files -chown -R root: $final_path -chown -R $admin: $final_path/.venv/share +chown -R $admin: $final_path/ +chmod -R 755 $final_path/.venv/ #================================================= # SETUP SSOWAT From 65572d2f23de71849e9df075e04a180182800fdd Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 25 Apr 2020 17:29:47 +0200 Subject: [PATCH 3/4] prevent pipenv to erase env --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 800d116..d36b487 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -116,7 +116,7 @@ then 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 From 4d5b3a1a1819fbb6e95923165fc6298339df4270 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 27 Apr 2020 17:13:41 +0200 Subject: [PATCH 4/4] Update install --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 8603af2..3a907b4 100644 --- a/scripts/install +++ b/scripts/install @@ -160,8 +160,8 @@ ynh_store_file_checksum --file="$final_path/config/jupyter_notebook_config.py" #================================================= # Set permissions to app files -chown -R $admin: $final_path/ -chmod -R 755 $final_path/.venv/ +chown -R root: $final_path/ +chown -R $admin: $final_path/.venv/lib #================================================= # ADVERTISE SERVICE IN ADMIN PANEL