diff --git a/scripts/install b/scripts/install index e0f7961..9573839 100644 --- a/scripts/install +++ b/scripts/install @@ -45,8 +45,9 @@ path=${path%/} ynh_add_config --template="../conf/jupyterhub_config.py" --destination="$install_dir/config/jupyterhub_config.py" ynh_add_config --template="../conf/jupyter_notebook_config.py" --destination="$install_dir/config/jupyter_notebook_config.py" -chown -R root: $install_dir/ -chown -R $admin: $install_dir/.venv/ +chmod 750 "$install_dir" +chmod -R o-rwx "$install_dir" +chown -R $app:www-data "$install_dir" #================================================= # SYSTEM CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 1af5ed4..7dbf6c4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -76,8 +76,9 @@ path=${path%/} ynh_add_config --template="../conf/jupyterhub_config.py" --destination="$install_dir/config/jupyterhub_config.py" ynh_add_config --template="../conf/jupyter_notebook_config.py" --destination="$install_dir/config/jupyter_notebook_config.py" -chown -R root: $install_dir/ -chown -R $admin: $install_dir/.venv/ +chmod 750 "$install_dir" +chmod -R o-rwx "$install_dir" +chown -R $app:www-data "$install_dir" #================================================= # START SYSTEMD SERVICE