From 6719574ed46b43cf015c55fe138049a6dcbfce86 Mon Sep 17 00:00:00 2001 From: lotigara <105482918+lotigara@users.noreply.github.com> Date: Fri, 19 Jul 2024 21:57:00 +0300 Subject: [PATCH] Add installation of additional languages --- scripts/install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/install b/scripts/install index 753481e..b5fd383 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #=================================================