diff --git a/aw-server/aw-server.env.example b/aw-server/aw-server.env.example index 93ef939..545cb9f 100755 --- a/aw-server/aw-server.env.example +++ b/aw-server/aw-server.env.example @@ -9,3 +9,6 @@ AW_SERVER_DATA_DIR=/var/lib/activitywatch AW_SERVER_LOG_DIR=/var/log/activitywatch AW_SERVER_USER=activitywatch AW_SERVER_GROUP=activitywatch + +# 1 = apply bundled Russian WebUI patch during install, 0 = skip +AW_SERVER_ENABLE_RU_PATCH=1 diff --git a/aw-server/install_aw_server.sh b/aw-server/install_aw_server.sh index 4d6262e..2b77a03 100755 --- a/aw-server/install_aw_server.sh +++ b/aw-server/install_aw_server.sh @@ -34,7 +34,7 @@ done export DEBIAN_FRONTEND=noninteractive apt-get update -apt-get install -y curl ca-certificates unzip jq +apt-get install -y curl ca-certificates unzip jq python3 if ! getent group "$AW_SERVER_GROUP" >/dev/null; then groupadd --system "$AW_SERVER_GROUP" @@ -96,6 +96,17 @@ for _ in $(seq 1 20); do sleep 2 done +if [[ "${AW_SERVER_ENABLE_RU_PATCH:-1}" == "1" ]]; then + if [[ -x /root/bootstrap/apply_webui_ru_patch.sh ]]; then + /root/bootstrap/apply_webui_ru_patch.sh + echo "Applied Web UI Russian patch" + else + echo "RU patch script not found or not executable, skipped: /root/bootstrap/apply_webui_ru_patch.sh" + fi +else + echo "RU patch disabled by AW_SERVER_ENABLE_RU_PATCH=${AW_SERVER_ENABLE_RU_PATCH}" +fi + if [[ -f "$CLASSES_JSON" ]]; then curl -fsS -X POST \ -H 'Content-Type: application/json' \