Refactor install-service.sh to streamline server setup instructions and update Russian translations across multiple resource packs, enhancing item names and GUI elements for better localization.

This commit is contained in:
Leonid Pershin
2026-05-08 12:30:41 +03:00
parent b9f7d14562
commit c0127ac1ec
5 changed files with 35 additions and 54 deletions
+3 -22
View File
@@ -155,26 +155,7 @@ if [[ ! -f "${EULA_FILE}" ]] || ! grep -qE '^\s*eula\s*=\s*true' "${EULA_FILE}";
need_first_run "${EULA_FILE} отсутствует или eula=false — без принятия EULA сервер не стартует."
fi
# 6. Проверка Java (run.sh вызывает 'java' из PATH)
if ! command -v java >/dev/null 2>&1; then
cat >&2 <<EOF
============================ ВНИМАНИЕ ============================
В системе не найдена команда 'java'. run.sh не сможет стартовать
сервер. Установите Java одним из способов:
# Системно (рекомендуется — видна и в shell, и в systemd):
sudo apt update
sudo apt install -y openjdk-21-jre-headless
После установки запустите этот скрипт повторно.
====================================================================
EOF
err "java не найдена в PATH."
fi
# 7. Предупреждение про /home — типичная причина status=200/CHDIR.
# 6. Предупреждение про /home — типичная причина status=200/CHDIR.
if [[ "${SERVER_DIR}" == /home/* ]]; then
cat >&2 <<EOF
@@ -185,7 +166,7 @@ if [[ "${SERVER_DIR}" == /home/* ]]; then
EOF
fi
# 8. Генерация systemd unit-файла
# 7. Генерация systemd unit-файла
if [[ "${SERVER_DIR}" == /home/* ]]; then
PROTECT_HOME_LINE="ProtectHome=false"
else
@@ -225,7 +206,7 @@ EOF
chmod 644 "${UNIT_FILE}"
# 9. Активация сервиса
# 8. Активация сервиса
echo ">> Перечитываю systemd, включаю и запускаю сервис..."
systemctl daemon-reload
systemctl enable "${SERVICE_NAME}.service"
@@ -21,14 +21,14 @@
"enhanced_boss_bar.aether.valkyrie_queen" : "Королева валькирий",
"enhanced_boss_bar.aether.sun_spirit" : "Дух солнца",
"enhanced_boss_bar.config.title" : "Настройки Enhanced Boss Bar",
"enhanced_boss_bar.config.title" : "Настройки усиленных полос боссов",
"enhanced_boss_bar.config.subtitle" : "Боссы",
"enhanced_boss_bar.config.minecraft" : "Minecraft",
"enhanced_boss_bar.config.cataclysm" : "L'Ender Cataclysm",
"enhanced_boss_bar.config.mass_destruction" : "Bosses of Mass Destruction",
"enhanced_boss_bar.config.mowziesmobs" : "Mowzie's Mobs",
"enhanced_boss_bar.config.witherstormmod" : "Cracker's Wither Storm",
"enhanced_boss_bar.config.meetyourfight" : "Meet your Fight",
"enhanced_boss_bar.config.alexsmobs" : "Alex's Mobs",
"enhanced_boss_bar.config.aether" : "The Aether"
"enhanced_boss_bar.config.mass_destruction" : "Боссы массового разрушения",
"enhanced_boss_bar.config.mowziesmobs" : "Мобы Mowzie",
"enhanced_boss_bar.config.witherstormmod" : "Шторм иссушителя Cracker",
"enhanced_boss_bar.config.meetyourfight" : "Встреть свой бой",
"enhanced_boss_bar.config.alexsmobs" : "Мобы Алекса",
"enhanced_boss_bar.config.aether" : "Эфир"
}
@@ -1,5 +1,5 @@
{
"gui.lionfishapi.optifine.message": "Optifine сильно несовместим с разными модами!",
"gui.lionfishapi.optifine.message": "Мод Optifine сильно несовместим с разными модами!",
"gui.lionfishapi.optifine.xenonsuggestions": "Вместо него используйте мод оптимизации Xenon",
"gui.lionfishapi.optifine.oculussuggestions": "Вместо него используйте шейдерный мод Oculus",
"gui.lionfishapi.optifine.title": "ПЕРЕСТАНЬТЕ ИСПОЛЬЗОВАТЬ OPTIFINE"
@@ -1,3 +1,3 @@
{
"item.macaws_bridges_delight.edible_bridge": "Edible Bridge"
"item.macaws_bridges_delight.edible_bridge": "Съедобный мост"
}
@@ -4,52 +4,52 @@
{ "text": " > ", "color": "gray" },
{ "index": 1, "color": "dark_gray" }
],
"text.owo.itemGroup.select_hint": {"text": "Shift-click to select multiple", "color": "gray"},
"text.owo.configure_hot_reload.title": "Configure Hot Reload",
"text.owo.configure_hot_reload.choose_file": "Choose file",
"text.owo.configure_hot_reload.save": "Save",
"text.owo.itemGroup.select_hint": {"text": "Shift-клик для множественного выбора", "color": "gray"},
"text.owo.configure_hot_reload.title": "Настроить горячую перезагрузку",
"text.owo.configure_hot_reload.choose_file": "Выбрать файл",
"text.owo.configure_hot_reload.save": "Сохранить",
"text.owo.configure_hot_reload.model": [
{"text": "Model: ", "color": "yellow"},
{"text": "Модель: ", "color": "yellow"},
{"index": 0, "color": "gray"}
],
"text.owo.configure_hot_reload.reload_from.unset": "Unset",
"text.owo.configure_hot_reload.reload_from.unset": "Не задано",
"text.owo.configure_hot_reload.reload_from": [
{"text": "Reload from: ", "color": "yellow"},
{"text": "Перезагружать из: ", "color": "yellow"},
{"index": 0, "color": "gray"}
],
"text.owo.config.search": "Search...",
"text.owo.config.search": "Поиск...",
"text.owo.config.search.matches": "%d of %d",
"text.owo.config.search.no_matches": "No matches",
"text.owo.config.must_restart": "Some changes you made require a restart to apply",
"text.owo.config.button.exit_minecraft": "Exit Minecraft",
"text.owo.config.button.ignore_restart": "Restart later",
"text.owo.config.button.range.edit_as_text": "Edit as text",
"text.owo.config.button.range.edit_with_slider": "Edit with slider",
"text.owo.config.search.no_matches": "Совпадений нет",
"text.owo.config.must_restart": "Некоторые изменения вступят в силу только после перезапуска",
"text.owo.config.button.exit_minecraft": "Выйти из Minecraft",
"text.owo.config.button.ignore_restart": "Перезапустить позже",
"text.owo.config.button.range.edit_as_text": "Редактировать как текст",
"text.owo.config.button.range.edit_with_slider": "Редактировать слайдером",
"text.owo.config.applies_after_restart": [
{"text": "⏻ ", "color": "#FAEA48"},
{"text": "This option applies after a restart", "color": "gray"}
{"text": "Этот параметр применяется после перезапуска", "color": "gray"}
],
"text.owo.config.managed_by_server": [
{"text": "⚑ ", "color": "#EB1D36"},
{"text": "This option is being managed by the server\n Disconnect to edit it", "color": "gray"}
{"text": "Этим параметром управляет сервер\n Отключитесь, чтобы изменить его", "color": "gray"}
],
"text.owo.config.button.reload": "Reload",
"text.owo.config.button.done": "Done",
"text.owo.config.sections_tooltip": "Sections",
"text.owo.config.sections": {"text": "Sections", "underlined": true},
"text.owo.config.list.add_entry": "Add entry",
"text.owo.config.button.reload": "Перезагрузить",
"text.owo.config.button.done": "Готово",
"text.owo.config.sections_tooltip": "Разделы",
"text.owo.config.sections": {"text": "Разделы", "underlined": true},
"text.owo.config.list.add_entry": "Добавить запись",
"text.owo.config.boolean_toggle.enabled": [
"",
{"text": "[", "color": "gray"},
{"text": "✔", "color": "#28FFBF"},
{"text": "]", "color": "gray"},
" Enabled"
" Включено"
],
"text.owo.config.boolean_toggle.disabled": [
"",
{"text": "[", "color": "gray"},
{"text": "❌", "color": "#EB1D36"},
{"text": "]", "color": "gray"},
" Disabled"
" Отключено"
]
}