From 01d3afb190970e313a2f1bbf238082f96383aef3 Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Fri, 8 May 2026 11:52:51 +0300 Subject: [PATCH] Enhance install-service.sh with Java version checks and installation instructions; update Russian translations in resource packs for improved localization of item names and descriptions. --- Server/install-service.sh | 43 +++++++++++++++++++ .../assets/example_mod/lang/ru_ru.json | 4 +- .../integrated_stronghold/lang/ru_ru.json | 8 ++-- .../assets/simplytooltips/lang/ru_ru.json | 2 +- 4 files changed, 50 insertions(+), 7 deletions(-) diff --git a/Server/install-service.sh b/Server/install-service.sh index 1f21189..802d5d8 100644 --- a/Server/install-service.sh +++ b/Server/install-service.sh @@ -125,6 +125,49 @@ fi chmod +x "${SERVER_DIR}/start.sh" "${SERVER_DIR}/run.sh" 2>/dev/null || true +# 3c. Проверка Java. start.sh иначе попытается интерактивно поставить +# Jabba и упадёт в systemd с "User did not agree to Jabba installation". +REQUIRED_JAVA_VERSION="$(grep -E '^RECOMMENDED_JAVA_VERSION=' "${SERVER_DIR}/variables.txt" 2>/dev/null \ + | cut -d= -f2 | tr -d '"' | head -n1)" +REQUIRED_JAVA_VERSION="${REQUIRED_JAVA_VERSION:-21}" + +if ! command -v java >/dev/null 2>&1; then + cat >&2 <> ВНИМАНИЕ: установлена Java ${JAVA_MAJOR}, ожидалась ${REQUIRED_JAVA_VERSION}." >&2 + echo " Сервер может не стартовать. Рекомендуется поставить openjdk-${REQUIRED_JAVA_VERSION}-jre-headless." >&2 +fi + # 4. Создание пользователя при необходимости if ! id -u "${SERVICE_USER}" >/dev/null 2>&1; then echo ">> Создаю системного пользователя ${SERVICE_USER}..." diff --git a/resourcepacks/PupaMLupa-Translations/assets/example_mod/lang/ru_ru.json b/resourcepacks/PupaMLupa-Translations/assets/example_mod/lang/ru_ru.json index 811d6e9..1f79884 100644 --- a/resourcepacks/PupaMLupa-Translations/assets/example_mod/lang/ru_ru.json +++ b/resourcepacks/PupaMLupa-Translations/assets/example_mod/lang/ru_ru.json @@ -1,4 +1,4 @@ { - "example_mod.configuration.client": "client", - "example_mod.configuration.example": "example" + "example_mod.configuration.client": "клиент", + "example_mod.configuration.example": "пример" } \ No newline at end of file diff --git a/resourcepacks/PupaMLupa-Translations/assets/integrated_stronghold/lang/ru_ru.json b/resourcepacks/PupaMLupa-Translations/assets/integrated_stronghold/lang/ru_ru.json index 717e9c1..7f5fe57 100644 --- a/resourcepacks/PupaMLupa-Translations/assets/integrated_stronghold/lang/ru_ru.json +++ b/resourcepacks/PupaMLupa-Translations/assets/integrated_stronghold/lang/ru_ru.json @@ -1,11 +1,11 @@ { "item.integrated_stronghold.music_disc_sight": "Пластинка", - "item.integrated_stronghold.music_disc_sight.desc": "Cama - sight", + "item.integrated_stronghold.music_disc_sight.desc": "Cama - Sight", "item.integrated_stronghold.music_disc_forlorn": "Пластинка", "item.integrated_stronghold.music_disc_forlorn.desc": "Cama - Forlorn", - "jukebox_song.integrated_stronghold.sight": "Cama - sight", + "jukebox_song.integrated_stronghold.sight": "Cama - Sight", "jukebox_song.integrated_stronghold.forlorn": "Cama - Forlorn", "item.integrated_stronghold.disc_fragment_sight": "Фрагмент пластинки", - "item.integrated_stronghold.disc_fragment_sight.desc": "Пластинка - sight", - "itemGroup.integrated_stronghold": "Integrated Stronghold" + "item.integrated_stronghold.disc_fragment_sight.desc": "Пластинка — Sight", + "itemGroup.integrated_stronghold": "Интегрированная крепость" } diff --git a/resourcepacks/PupaMLupa-Translations/assets/simplytooltips/lang/ru_ru.json b/resourcepacks/PupaMLupa-Translations/assets/simplytooltips/lang/ru_ru.json index 09e834c..433f810 100644 --- a/resourcepacks/PupaMLupa-Translations/assets/simplytooltips/lang/ru_ru.json +++ b/resourcepacks/PupaMLupa-Translations/assets/simplytooltips/lang/ru_ru.json @@ -1,5 +1,5 @@ { - "simplytooltips.key.category": "Simply Tooltips", + "simplytooltips.key.category": "Простые подсказки", "key.simplytooltips.cycle_tab": "Переключить вкладку подсказки", "key.simplytooltips.capture_gif": "Записать GIF подсказки" }