diff --git a/conf/systemd.service b/conf/systemd.service index 8a1f78b..6d5cac9 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -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 diff --git a/manifest.toml b/manifest.toml index 8d39d4f..0824322 100644 --- a/manifest.toml +++ b/manifest.toml @@ -55,4 +55,4 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "python3-venv" + packages = "python3-venv, python3-pip" diff --git a/scripts/install b/scripts/install index dac0303..f861aca 100755 --- a/scripts/install +++ b/scripts/install @@ -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