1
0
Fork 0
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:
lotigara 2024-07-19 21:57:00 +03:00 committed by GitHub
parent f079bec7ba
commit 6719574ed4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
#=================================================