Update LanguageTool backup

This commit is contained in:
tremor021 2026-01-19 22:13:22 +01:00
parent 75abbd701b
commit 9e09441dbc
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ function update_script() {
msg_info "Updating LanguageTool"
rm -rf /opt/LanguageTool
download_file "https://languagetool.org/download/LanguageTool-stable.zip" /tmp/LanguageTool-stable.zip
unzip /tmp/LanguageTool-stable.zip -d /opt
unzip -q /tmp/LanguageTool-stable.zip -d /opt
mv /opt/LanguageTool-*/ /opt/LanguageTool/
mv /opt/server.properties /opt/LanguageTool/server.properties
echo "${RELEASE}" >~/.languagetool

View File

@ -20,7 +20,7 @@ msg_ok "Installed dependencies"
msg_info "Setting up LanguageTool"
RELEASE=$(curl -fsSL https://languagetool.org/download/ | grep -oP 'LanguageTool-\K[0-9]+\.[0-9]+(\.[0-9]+)?(?=\.zip)' | sort -V | tail -n1)
download_file "https://languagetool.org/download/LanguageTool-stable.zip" /tmp/LanguageTool-stable.zip
unzip /tmp/LanguageTool-stable.zip -d /opt
unzip -q /tmp/LanguageTool-stable.zip -d /opt
mv /opt/LanguageTool-*/ /opt/LanguageTool/
download_file "https://dl.fbaipublicfiles.com/fasttext/supervised-models/lid.176.bin" /opt/lid.176.bin