{ "name": "tolgee", "version": "3.226.3", "summary": "Tolgee: a translation management server (projects, keys, imports and exports, machine translation), the release jar on the app's own Java and PostgreSQL", "category": "server", "license": "Apache-2.0 AND LicenseRef-Tolgee-EE-1", "homepage": "https://tolgee.io/", "source": { "url": "https://github.com/tolgee/tolgee-platform/releases/download/v3.226.3/tolgee-3.226.3.jar", "sha256": "7149bb302582c5860dc211ee65be8716585ff4a1ff821d7182d963a03748614a" }, "watch": {"kind": "github-release", "repo": "tolgee/tolgee-platform", "tag_regex": "^v([0-9]+(?:\\.[0-9]+)+)$", "source": "https://github.com/tolgee/tolgee-platform/releases/download/v{version}/tolgee-{version}.jar"}, "deps": [ "temurin-jre", "postgresql" ], "env_packages": [], "static": false, "nss": false, "check": "t=$(mktemp -d) && chmod 755 \"$t\" && chown 65534:65534 \"$t\" && p=$(free_port) && w=$(free_port) && pid= && u() { setpriv --reuid=65534 --regid=65534 --clear-groups \"$@\"; } && trap 'u bin/pg_ctl -D \"$t/pg\" -m immediate stop > /dev/null 2>&1; [ -z \"$pid\" ] || kill -9 \"$pid\" 2> /dev/null' EXIT && u bin/initdb -D \"$t/pg\" -U tolgee --auth=trust -E UTF8 --no-instructions > \"$t/initdb.log\" 2>&1 && u bin/pg_ctl -D \"$t/pg\" -l \"$t/pg.log\" -w -t 120 -o \"-p $p -k $t -c listen_addresses=127.0.0.1\" start > /dev/null && { HOME=$t TMPDIR=$t TOLGEE_JAVA_OPTS='-Xms128m -Xmx768m' setpriv --reuid=65534 --regid=65534 --clear-groups bin/tolgee --server.port=$w --spring.datasource.url=\"jdbc:postgresql://127.0.0.1:$p/postgres\" --spring.datasource.username=tolgee --spring.datasource.password=unused --tolgee.authentication.enabled=true --tolgee.authentication.initial-username=admin --tolgee.authentication.initial-password=bvs-check-pw --tolgee.file-storage.fs-data-path=\"$t/data\" > \"$t/tolgee.log\" 2>&1 & pid=$!; } && up= && for i in $(seq 1 150); do curl -fs -m 2 \"http://127.0.0.1:$w/actuator/health\" | has '\"status\":\"UP\"' && up=1 && break; kill -0 \"$pid\" 2> /dev/null || break; sleep 2; done && { [ -n \"$up\" ] || { tail -n 40 \"$t/tolgee.log\"; false; }; } && grep -E '^Uid:[[:space:]]+65534[[:space:]]' \"/proc/$pid/status\" > /dev/null && tr '\\0' ' ' < \"/proc/$pid/cmdline\" | has -F -- '--tolgee.telemetry.enabled=false' && tr '\\0' ' ' < \"/proc/$pid/cmdline\" | has -F -- '-Dliquibase.analytics.enabled=false' && b=\"http://127.0.0.1:$w\" && tok=$(curl -fs -H 'Content-Type: application/json' -d '{\"username\":\"admin\",\"password\":\"bvs-check-pw\"}' \"$b/api/public/generatetoken\" | grep -o '\"accessToken\":\"[^\"]*\"' | cut -d'\"' -f4) && [ -n \"$tok\" ] && a=\"Authorization: Bearer $tok\" && pr=$(curl -fs -H \"$a\" -H 'Content-Type: application/json' -d '{\"name\":\"bvs-check\",\"organizationId\":1,\"languages\":[{\"tag\":\"en\",\"name\":\"English\",\"originalName\":\"English\"},{\"tag\":\"pl\",\"name\":\"Polish\",\"originalName\":\"Polski\"}],\"baseLanguageTag\":\"en\"}' \"$b/v2/projects\" | grep -o '^{\"id\":[0-9]*' | cut -d: -f2) && [ -n \"$pr\" ] && printf 'msgid \"\"\\nmsgstr \"\"\\n\"Content-Type: text/plain; charset=UTF-8\\\\n\"\\n\"Language: pl\\\\n\"\\n\\nmsgid \"Volume\"\\nmsgstr \"Wolumin\"\\n' > \"$t/pl.po\" && curl -fs -H \"$a\" -F \"files=@$t/pl.po\" -F 'params={\"forceMode\":\"OVERRIDE\",\"languageMappings\":[{\"importLanguage\":\"pl\",\"platformLanguageTag\":\"pl\"}]};type=application/json' \"$b/v2/projects/$pr/single-step-import\" > /dev/null && curl -fs -H \"$a\" \"$b/v2/projects/$pr/export?format=PO&languages=pl&zip=false\" | has -x 'msgstr \"Wolumin\"' && curl -s -H \"$a\" \"$b/v2/organizations/1/glossaries\" | has -F '\"feature_not_enabled\"' && curl -fs \"$b/\" | has -i ' /dev/null || break; sleep 1; done && ! kill -0 \"$pid\" 2> /dev/null && pid= && has -F 'Shutdown completed' \"$t/tolgee.log\" && echo \"tolgee 3.226.3: up on PostgreSQL as uid 65534 without telemetry (Tolgee and Liquibase), a sign-in, a project, a .po imported and exported, the glossary off (no EE licence), the web app, a clean stop\"" }