1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zeronet_ynh.git synced 2024-09-03 17:46:12 +02:00

use pip3 to install dependencies

This commit is contained in:
anmol 2020-11-09 20:16:29 +05:30
parent 1bb8879997
commit 14eb4b985f
5 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@
#=================================================
# dependencies used by the app
pkg_dependencies="python-msgpack python-gevent"
pkg_dependencies="python3-msgpack python3-socks python3-gevent"
#=================================================
# PERSONAL HELPERS

View file

@ -110,7 +110,7 @@ ynh_script_progression --message="Installing dependencies..."
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
ynh_install_app_dependencies $pkg_dependencies
pip3 install msgpack-python gevent
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
@ -232,7 +232,7 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="$datadir/log
ynh_script_progression --message="Configuring SSOwat..."
# Restrict access to admin only
yunohost app addaccess --users=$admin $app
#yunohost app addaccess --users=$admin $app
#=================================================
# RELOAD NGINX

View file

@ -49,7 +49,7 @@ ynh_remove_systemd_config
ynh_script_progression --message="Removing dependencies..."
# Remove metapackage and its dependencies
ynh_remove_app_dependencies
pip3 uninstall msgpack-python gevent
#=================================================
# REMOVE APP MAIN DIR

View file

@ -86,7 +86,7 @@ chown -R $app: $datadir
ynh_script_progression --message="Reinstalling dependencies..."
# Define and install dependencies
ynh_install_app_dependencies $pkg_dependencies
pip3 install msgpack-python gevent
#=================================================
# RESTORE SYSTEMD

View file

@ -108,7 +108,7 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Upgrading dependencies..."
ynh_install_app_dependencies $pkg_dependencies
pip3 install msgpack-python gevent
#=================================================
# CREATE DEDICATED USER