1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libretranslate_ynh.git synced 2024-09-03 19:36:00 +02:00
This commit is contained in:
Thomas 2023-07-09 22:45:29 +02:00 committed by GitHub
parent 15cfb34986
commit dd1af19293
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -26,7 +26,7 @@ ynh_script_progression --message="Installing LibreTranslate..." --weight=2
pushd $install_dir pushd $install_dir
python3 -m venv $install_dir/venv python3 -m venv $install_dir/venv
source $install_dir/venv/bin/activate source $install_dir/venv/bin/activate
ynh_exec_warn_less pip install libretranslate==$libretranslate_version ynh_exec_warn_less pip install libretranslate==$libretranslate_version toml
popd popd

View file

@ -38,10 +38,12 @@ chown -R $app:www-data "$install_dir"
#================================================= #=================================================
ynh_script_progression --message="Installing LibreTranslate..." --weight=2 ynh_script_progression --message="Installing LibreTranslate..." --weight=2
ynh_secure_remove $install_dir/.venv
pushd $install_dir pushd $install_dir
python3 -m venv $install_dir/venv python3 -m venv $install_dir/venv
source $install_dir/venv/bin/activate source $install_dir/venv/bin/activate
ynh_exec_warn_less pip install libretranslate==$libretranslate_version ynh_exec_warn_less pip install libretranslate==$libretranslate_version toml
popd popd
#================================================= #=================================================