mirror of
https://github.com/YunoHost-Apps/yunomonitor_ynh.git
synced 2024-09-03 17:46:11 +02:00
Tweak install venv usage.
This commit is contained in:
parent
143a8a8257
commit
85de74de05
3 changed files with 6 additions and 5 deletions
|
@ -96,8 +96,7 @@ ynh_systemd_action --service_name=nginx --action=reload
|
|||
ynh_script_progression --message="Building Yunomonitor..."
|
||||
|
||||
pushd "$final_path"
|
||||
python3 -m venv venv
|
||||
venv/bin/pip install --upgrade pip
|
||||
python3 -m venv -- venv --system-site-packages --upgrade-deps
|
||||
venv/bin/pip install pycryptodome
|
||||
popd
|
||||
|
||||
|
|
|
@ -45,7 +45,8 @@ ynh_secure_remove --file="$final_path"
|
|||
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
|
||||
|
||||
# Remove the dedicated NGINX config
|
||||
ynh_remove_nginx_config
|
||||
ynh_secure_remove --file="/etc/nginx/conf.d/$domain.d/000-$app.conf"
|
||||
ynh_systemd_action --service_name=nginx --action=reload
|
||||
|
||||
#=================================================
|
||||
# REMOVE DEPENDENCIES
|
||||
|
|
|
@ -106,9 +106,10 @@ ynh_install_app_dependencies $pkg_dependencies
|
|||
#=================================================
|
||||
ynh_script_progression --message="Building Yunomonitor..."
|
||||
|
||||
ynh_secure_remove "$final_path/venv"
|
||||
|
||||
pushd "$final_path"
|
||||
python3 -m venv venv
|
||||
venv/bin/pip install --upgrade pip
|
||||
python3 -m venv -- venv --system-site-packages --upgrade-deps
|
||||
venv/bin/pip install pycryptodome
|
||||
popd
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue