mirror of
https://github.com/YunoHost-Apps/13ft_ynh.git
synced 2024-09-03 18:06:03 +02:00
fix
This commit is contained in:
parent
99f5a4e661
commit
0973ada50d
3 changed files with 5 additions and 7 deletions
|
@ -8,8 +8,6 @@ User=__APP__
|
|||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__/
|
||||
ExecStart=__INSTALL_DIR__/venv/bin/python3 __INSTALL_DIR__/app/index.py
|
||||
StandardOutput=append:/var/log/__APP__/__APP__.log
|
||||
StandardError=inherit
|
||||
|
||||
# Sandboxing options to harden security
|
||||
# Depending on specificities of your service/app, you may need to tweak these
|
||||
|
|
|
@ -55,4 +55,4 @@ ram.runtime = "50M"
|
|||
main.url = "/"
|
||||
|
||||
[resources.apt]
|
||||
packages = "python3-venv"
|
||||
packages = "python3-venv, python3-pip"
|
||||
|
|
|
@ -35,10 +35,10 @@ yunohost service add $app --description="Bypass paywall" --log="/var/log/$app/$a
|
|||
#=================================================
|
||||
ynh_script_progression --message="Installing python dependencies..." --weight=1
|
||||
|
||||
pushd $install_dir
|
||||
ynh_exec_as $app python3 -m venv $install_dir/venv
|
||||
ynh_exec_as $app "$install_dir/venv/bin/pip" install --upgrade pip
|
||||
ynh_exec_as $app "$install_dir/venv/bin/pip" install -r requirements.txt
|
||||
pushd "$install_dir"
|
||||
python3 -m venv venv
|
||||
venv/bin/pip install --upgrade pip
|
||||
venv/bin/pip install -r requirements.txt
|
||||
popd
|
||||
|
||||
ls -l $install_dir
|
||||
|
|
Loading…
Add table
Reference in a new issue