1
0
Fork 0
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:
orhtej2 2023-09-29 14:01:06 +02:00
parent 143a8a8257
commit 85de74de05
3 changed files with 6 additions and 5 deletions

View file

@ -96,8 +96,7 @@ ynh_systemd_action --service_name=nginx --action=reload
ynh_script_progression --message="Building Yunomonitor..." ynh_script_progression --message="Building Yunomonitor..."
pushd "$final_path" pushd "$final_path"
python3 -m venv venv python3 -m venv -- venv --system-site-packages --upgrade-deps
venv/bin/pip install --upgrade pip
venv/bin/pip install pycryptodome venv/bin/pip install pycryptodome
popd popd

View file

@ -45,7 +45,8 @@ ynh_secure_remove --file="$final_path"
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1 ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
# Remove the dedicated NGINX config # 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 # REMOVE DEPENDENCIES

View file

@ -106,9 +106,10 @@ ynh_install_app_dependencies $pkg_dependencies
#================================================= #=================================================
ynh_script_progression --message="Building Yunomonitor..." ynh_script_progression --message="Building Yunomonitor..."
ynh_secure_remove "$final_path/venv"
pushd "$final_path" pushd "$final_path"
python3 -m venv venv python3 -m venv -- venv --system-site-packages --upgrade-deps
venv/bin/pip install --upgrade pip
venv/bin/pip install pycryptodome venv/bin/pip install pycryptodome
popd popd