1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/FastAPI_ynh.git synced 2024-09-03 18:36:00 +02:00

fix des droits du service et de l'installation des dépendance python

This commit is contained in:
leonard 2023-12-01 10:19:35 +01:00
parent d22211de98
commit 07b2cc746e
2 changed files with 3 additions and 2 deletions

View file

@ -33,7 +33,8 @@ ProtectKernelModules=yes
ProtectKernelTunables=yes
LockPersonality=yes
SystemCallArchitectures=native
SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap @cpu-emulation @privileged
#TODO : list all system call that could be needed by the application
#SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap @cpu-emulation @privileged
# Denying access to capabilities that should not be relevant for webapps
# Doc: https://man7.org/linux/man-pages/man7/capabilities.7.html

View file

@ -49,7 +49,7 @@ myynh_setup_python_venv() {
set -x
ynh_exec_as $app $data_dir/venv/bin/python3 -m ensurepip
ynh_exec_as $app $data_dir/venv/bin/pip3 install --upgrade wheel pip setuptools
ynh_exec_as $app $data_dir/venv/bin/pip3 install --no-deps -r "$data_dir/requirements.txt"
ynh_exec_as $app $data_dir/venv/bin/pip3 install -r "$data_dir/requirements.txt"
)
}