mirror of
https://github.com/YunoHost-Apps/libretranslate_ynh.git
synced 2024-09-03 19:36:00 +02:00
Add installation of additional languages
This commit is contained in:
parent
f079bec7ba
commit
6719574ed4
1 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,13 @@ pushd $install_dir
|
|||
python3 -m venv $install_dir/venv
|
||||
source $install_dir/venv/bin/activate
|
||||
ynh_exec_warn_less pip install libretranslate=="$(ynh_app_upstream_version)" toml
|
||||
|
||||
# Install additional languages (FIXME!!!)
|
||||
venv/bin/libretranslate --update-models &
|
||||
export LT-PID="$!"
|
||||
if [ ss -tulpen | grep '127.0.0.1:5000' ] ; then
|
||||
kill -INT "$!"
|
||||
fi
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue