348 Commits

Author SHA1 Message Date
MickLesk
9a78f9f263 rust_profile 2026-06-02 08:40:59 +02:00
CanbiZ (MickLesk)
4a7c07c8ea Merge pull request #1833 from senk/bugfix/postgresextension
fix(postgresql): quote extension names in CREATE EXTENSION to support hyphens
2026-06-01 08:12:51 +02:00
CanbiZ (MickLesk)
bcd63e5f2e tools.func: Merge from Upstream 2026-05-26 10:59:25 +02:00
MickLesk
f8ad306b9a fix(mysql): update GPG key from expired 2023 key to 2025 key 2026-05-18 15:15:53 +02:00
MickLesk
5ef713e58c fix(mysql): refactor MySQL setup logic to use new setup_mysql_db function 2026-05-18 14:41:32 +02:00
MickLesk
8d9720a53e fix(mysql): update MySQL installation logic for Debian 13+ to use 8.4 LTS 2026-05-18 14:39:13 +02:00
MickLesk
dd0b3c6538 fix(fleet): downgrade version from 13 to 12 in configuration files and scripts
fix(invidious): correct indentation in version retrieval
fix(fleet-install): switch from MariaDB to MySQL setup and update database creation logic
fix(tools): add MySQL repository handling in helper functions
2026-05-18 14:27:58 +02:00
Robin Naundorf
83ffce2095 fix(postgresql): quote extension names in CREATE EXTENSION to support hyphens
Unquoted extension names like `uuid-ossp` are interpreted as subtraction expressions by the SQL parser, causing exit code 1.
Wrapping the name in double quotes makes it valid for any extension regardless of naming.
2026-05-18 13:15:40 +02:00
tremor021
adfab91fea pin pnpm to v10 2026-05-10 16:42:46 +02:00
CanbiZ (MickLesk)
f490247be0 Add GitLab checker; gate storyteller update
Introduce GitLab release helpers and use them to conditionally update Storyteller.

- misc/tools.func: add get_latest_gitlab_release and check_for_gl_release functions (GitLab API calls, token support, pinning, error handling, requires jq).
- ct/storyteller.sh: wrap update sequence with check_for_gl_release so rebuild/deploy only runs when a new GitLab release is detected; update author metadata.
- install/storyteller-install.sh: remove python3 from apt dependencies and drop NODE_OPTIONS export; minor whitespace cleanup.

These changes prevent unnecessary rebuilds by detecting upstream GitLab releases and improve robustness of release detection and error reporting.
2026-04-30 13:41:10 +02:00
tremor021
390061cf50 tools.func: handle minor versions for 8.x 2026-04-30 12:17:36 +02:00
CanbiZ (MickLesk)
e531e0372c Update tools.func 2026-04-30 09:37:35 +02:00
CanbiZ (MickLesk)
33cf0fe2ae Update tools.func 2026-04-30 09:28:12 +02:00
CanbiZ (MickLesk)
db39c543a3 Update tools.func 2026-04-30 08:58:53 +02:00
MickLesk
f7258d5268 fix(fleet,mysql): switch Fleet to MariaDB, add mysql case to manage_tool_repository
- fleet: use setup_mariadb instead of setup_mysql (MariaDB works fine for
  Fleet and avoids MySQL repo complexity on trixie)
- tools.func: add missing mysql) case block to manage_tool_repository
  (was causing 'Unknown tool repository: mysql' error)
2026-04-05 18:35:51 +02:00
MickLesk
363df9ddac fix(otbr,kan,mysql): OTBR vendor/model/socat/web binding, Kan build env vars, MySQL trixie support
- openthread-br: add socat dep for TCP adapters, add --vendor-name/--model-name
  (mandatory), bind REST API to 0.0.0.0:8081, configure otbr-web to listen on
  all interfaces, update TCP example with socat forkpty pattern
- kan: export BETTER_AUTH_SECRET and POSTGRES_URL before build (required by
  @t3-oss/env-nextjs zod validation at build time)
- mysql: remove MariaDB-on-trixie workaround (MySQL repo now has trixie packages),
  update GPG key from RPM-GPG-KEY-mysql-2023 to RPM-GPG-KEY-mysql-2025
2026-04-05 18:26:11 +02:00
MickLesk
63ae2eb8d4 fix(tools): use MariaDB on Debian trixie instead of MySQL repo
MySQL APT repo GPG key (RPM-GPG-KEY-mysql-2023) expired 2025-10-22
and no trixie packages exist. Use distro MariaDB which is a drop-in
replacement and natively available.
2026-04-04 23:33:17 +02:00
MickLesk
062a6f85fb fix(tools): don't use $STD for npm self-update
silent() hard-exits on non-zero rc, so the || fallback never
executes. Use plain redirect instead so npm update failures are
non-fatal as intended.
2026-04-04 23:30:45 +02:00
CanbiZ (MickLesk)
6a5e7b88fd fix(tools.func): flat repo detection for suites ending with /
- setup_deb822_repo: skip Components for any suite ending with /
- Previously only skipped for exactly './' but 'stable/' is also flat
- Fixes Jitsi repo producing 'Malformed entry (absolute Suite Component)'
2026-03-25 12:41:33 +01:00
CanbiZ (MickLesk)
f95260387c move json 2026-03-25 10:30:56 +01:00
CanbiZ (MickLesk)
4b0fcf7d9d Update print statement from 'Hello' to 'Goodbye' 2026-03-18 12:36:33 +01:00
CanbiZ (MickLesk)
b056d30f9d fixes pg_cron 2026-03-16 16:57:55 +01:00
CanbiZ (MickLesk)
7d411e30d7 fixes 2026-03-16 16:50:49 +01:00
tremor021
2afbe78348 Add fetch_and_deploy_gl_release 2026-03-04 12:34:52 +01:00
CanbiZ (MickLesk)
2171cfb09d merge from VE 2026-03-02 09:18:02 +01:00
CanbiZ (MickLesk)
192452a3fd merge tools.func 2026-02-24 09:38:46 +01:00
MickLesk
959a0cbeeb fix: quote PostgreSQL identifiers in setup_postgresql_db
- Rename Twenty DB from 'default' to 'twenty_db' (reserved keyword)
- Quote all identifiers in setup_postgresql_db with double quotes
  to prevent SQL syntax errors with reserved words
2026-02-22 14:23:29 +01:00
Tobias
583b837161 Change version variable from APPLICATION_VERSION to var_appversion 2026-02-12 20:25:22 +01:00
CanbiZ (MickLesk)
754b3d4b6b fix: add Debian codename matching for binary mode in fetch_and_deploy_gh_release 2026-02-10 14:42:13 +01:00
Tobias
3e20781f88 Use APPLICATION_VERSION for version in fetch functions 2026-02-10 08:10:54 +01:00
MickLesk
2e1ee2d853 feat(tools): add fetch_and_deploy_codeberg_release function
Add Codeberg equivalent of fetch_and_deploy_gh_release supporting:
- tarball/source mode for source code archives
- binary mode for .deb packages
- prebuild mode for prebuilt archives
- singlefile mode for standalone binaries
- tag mode for direct tag downloads

Uses Codeberg API and archive URL patterns:
- API: https://codeberg.org/api/v1/repos/{owner}/{repo}/releases
- Archive: https://codeberg.org/{owner}/{repo}/archive/{tag}.tar.gz
2026-02-01 20:35:40 +01:00
Justin
62f68959c7 Remove inline comment in misc/tools.func
Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com>
2026-01-29 10:24:13 +01:00
justin
75898f4986 Add tail -1 before tr to use only the last value 2026-01-29 10:24:13 +01:00
justin
622fda4b32 Fix download_with_progress() content_length calc 2026-01-29 10:24:13 +01:00
CanbiZ (MickLesk)
36eaaea69b add TAG mode in tools.func fetch_and_deploy 2026-01-29 08:50:12 +01:00
tremor021
972e1c1844 Add deb handling to fetch_and_deploy_archive 2026-01-23 13:50:18 +01:00
tremor021
7d5123bdd6 add fetch_and_deploy_archive 2026-01-22 22:20:06 +01:00
CanbiZ (MickLesk)
0481d5ccf7 fix(tools): sanitize version string for filename
Replace @ and / with _ in filename to avoid invalid paths like
papra-@papra/docker@26.0.0.tar.gz
2026-01-21 16:30:55 +01:00
CanbiZ (MickLesk)
fc8433ad8b fix(tools): use codeload directly for tags with special chars (@/)
Skip failed github.com attempt entirely for scoped tags like @papra/docker@26.0.0
2026-01-21 16:19:58 +01:00
CanbiZ (MickLesk)
fe9c5d2285 fix(tools): remove partial file before fallback download attempt 2026-01-21 16:09:30 +01:00
CanbiZ (MickLesk)
665907592e fix(tools): add codeload.github.com fallback for complex tag names
- Primary URL github.com/archive/refs/tags/ tried first
- Fallback to codeload.github.com for tags with special chars (@scope/pkg@ver)
- Only encode @ in fallback URL, keep / unencoded for codeload compatibility
2026-01-21 15:59:06 +01:00
CanbiZ (MickLesk)
c2b890baa6 Improve validation and robustness in container scripts
Enhances timezone handling by mapping 'Etc/*' zones to 'host', adds stricter password validation (removing leading dashes and enforcing minimum length), and improves container ID validation. Adds storage space validation before container creation and when selecting storage. Implements retry logic and stale lock cleanup for template lock files to avoid stuck processes. Improves GitHub release fetching by adding a fallback to codeload.github.com for complex tag names.
2026-01-21 15:48:22 +01:00
CanbiZ (MickLesk)
db5e26f4f1 merge tools.func from VE to VED 2026-01-21 14:30:44 +01:00
CanbiZ
8540bc3627 fixes 2026-01-14 15:49:44 +01:00
CanbiZ
17d04e2d1d fix space 2026-01-14 09:33:37 +01:00
CanbiZ
fed9fd9db8 fixes tag name github 2026-01-14 09:27:14 +01:00
CanbiZ
aef1cf79f3 nodejs binary method 2026-01-13 14:34:58 +01:00
CanbiZ
7129c0dbd9 Tools.func: Get Version from Upstream (VE) 2026-01-12 08:51:11 +01:00
MickLesk
15d22d7f98 filename fix 2026-01-06 20:24:31 +01:00
MickLesk
e06cd44584 2026-01-06 20:10:34 +01:00