276 Commits

Author SHA1 Message Date
CanbiZ
53a92b2e53 Update tools.func 2025-11-07 10:37:23 +01:00
CanbiZ
a03867de69 Add setup_postgresql_db function for database creation
Introduces setup_postgresql_db to automate PostgreSQL database and user creation, extension installation, role configuration, and credential management. Supports options for superuser privileges, schema permissions, and compatibility settings for frameworks like Django and Rails.
2025-11-07 10:35:57 +01:00
CanbiZ
e6b42a2b86 Update tools.func 2025-11-06 10:07:10 +01:00
CanbiZ
5552a2beb4 Refactor Omada install and improve repo suite mapping
Refactored omada-install.sh to use setup_java and setup_mongodb functions, simplifying Java and MongoDB installation logic. Improved manage_tool_repository in tools.func to provide explicit suite mapping and fallbacks for newer or unknown Debian and Ubuntu releases, enhancing compatibility with future distributions. Minor comment translations and cleanups included.
2025-11-06 09:29:37 +01:00
CanbiZ
dec609fb6a Add success messages to legacy cleanup steps
Added explicit success messages after removing legacy installations for nvm, rbenv, rustup, and Go workspace in the cleanup_legacy_install function. Also updated ensure_apt_working to use the $STD variable for apt update commands for consistency.
2025-11-05 10:57:41 +01:00
CanbiZ
b0610bd8a8 Update tools.func 2025-11-05 10:34:21 +01:00
CanbiZ
b429113018 Update tools.func 2025-11-04 18:10:52 +01:00
CanbiZ
96339e216a fix typo 2025-11-04 17:52:53 +01:00
CanbiZ
dd34f2d8b3 Fix npm global module version detection in setup_nodejs
Replaces direct npm list checks with STD-prefixed commands and output parsing to improve reliability when detecting installed global module versions in the setup_nodejs function.
2025-11-04 17:03:02 +01:00
CanbiZ
60ddf3af72 Refactor and enhance setup_uv function
Improves architecture and OS detection, adds support for i686, and streamlines version fetching and installation logic. Introduces uvx wrapper installation when requested, generates shell completions, and optionally installs a specific Python version via uv. Cleans up temporary directory handling and error management for robustness.
2025-11-04 16:44:21 +01:00
CanbiZ
be47e96028 remove debug 2025-11-04 16:16:38 +01:00
CanbiZ
cf885419ea Update tools.func 2025-11-04 16:09:56 +01:00
CanbiZ
1925c1cd5f Update tools.func 2025-11-04 16:01:24 +01:00
CanbiZ
b159d519b2 Update tools.func 2025-11-04 15:49:26 +01:00
CanbiZ
c8a299e401 Improve Node.js setup to prevent Debian package conflicts
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Moves APT pinning for NodeSource to occur before removing existing Debian nodejs packages, ensuring Debian's nodejs is not reinstalled. Cleans up logic for removing conflicting packages and clarifies the order of operations in setup_nodejs.
2025-11-04 15:36:01 +01:00
CanbiZ
5ebd30abfd Update tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-11-04 15:31:02 +01:00
CanbiZ
000492671c Improve Node.js setup for Debian systems
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Enhances the setup_nodejs function to remove Debian-packaged Node.js if present, set APT preferences to prioritize NodeSource packages, and verify npm availability after installation. These changes help avoid conflicts between Debian and NodeSource Node.js versions and ensure npm is properly installed.
2025-11-04 15:23:01 +01:00
CanbiZ
03fb8e2da3 Add usage and feature documentation to tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Added detailed comments at the top of misc/tools.func describing its purpose, key features, and usage examples. This improves clarity for maintainers and users of the helper functions.
2025-11-04 13:54:43 +01:00
CanbiZ
175df9e847 Add retry logic for package upgrades and refactor installs
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Introduced upgrade_packages_with_retry to handle package upgrades with retry logic, similar to existing install_packages_with_retry. Refactored Java, MariaDB, and other install/upgrade flows to use the new retry functions and ensure_dependencies for more robust package management. Improved error handling and repository preparation steps.
2025-11-04 13:52:58 +01:00
CanbiZ
3f7f39abe2 Refactor tool setup: unify cleanup, retries, and validation
Introduces unified helper functions for cleaning up keyrings, stopping services, verifying tool versions, and cleaning legacy installs. Adds a retry mechanism for package installation and a repository preparation function to streamline setup and error handling. Refactors all tool setup and removal logic to use these helpers, reducing code duplication and improving maintainability.
2025-11-04 13:49:51 +01:00
CanbiZ
03bf6dadf1 Enhance cleanup of keyrings and repo configs for tools
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Expanded the removal of GPG keyrings and repository configuration files for MariaDB, MySQL, MongoDB, Node.js, PHP, PostgreSQL, Java (Adoptium), and ClickHouse in both removal and setup functions. This ensures all possible keyring locations are cleaned before new installations, reducing risk of conflicts and improving idempotency. Also improved PHP-FPM service cleanup and added version verification for MongoDB setup.
2025-11-04 13:24:44 +01:00
CanbiZ
f55fa4f60e Reformat misc/tools.func with consistent indentation
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Updated the entire misc/tools.func script to use consistent 2-space indentation for improved readability and maintainability. No functional changes were made.
2025-11-04 13:18:36 +01:00
CanbiZ
5ae38e84c8 Fix LibreNMS release name and improve Node.js install logs
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Corrects the case of the release name in the LibreNMS installer to 'librenms' and updates Node.js installation commands to use the $STD variable for consistent output and logging.
2025-11-04 13:13:08 +01:00
CanbiZ
ddcd37a419 fixes
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-28 14:48:23 +01:00
vhsdream
63a76ca4bb tools.func: NodeJS 'Suite' should be 'nodistro'
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-25 13:38:17 -04:00
vhsdream
c96f4e9696 tools.func: NodeJS install also requires gpg_key_url
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-25 13:28:53 -04:00
vhsdream
a0e76feae2 fix error in tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-24 10:25:35 -04:00
CanbiZ
ed9efffcb5 Update tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-24 16:12:23 +02:00
CanbiZ
19dca627b9 Improve network error handling and fallbacks in setup scripts
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Adds robust error handling and fallback logic for network operations in setup_ffmpeg, setup_gs, setup_hwaccel, setup_java, setup_mariadb, setup_ruby, setup_clickhouse, setup_uv, and setup_yq functions. Now uses timeouts, checks for empty responses, and provides alternative installation paths or informative warnings when API or mirror requests fail. This improves reliability in environments with intermittent or restricted network access.
2025-10-24 16:09:56 +02:00
CanbiZ
0f624dfba8 Add unified tool install, upgrade, and repo management
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Introduces functions for checking tool installation and version, removing old versions, determining if upgrades are needed, and managing repositories for major tools (MariaDB, MongoDB, Node.js, PHP, PostgreSQL, MySQL). Refactors setup functions for Composer, FFmpeg, Go, Ghostscript, ImageMagick, Java, local IP helper, MariaDB, MongoDB, MySQL, and Node.js to use these new utilities, improving idempotency, upgrade handling, and error reporting. Enhances repository setup with parameter validation and error handling.
2025-10-24 16:03:59 +02:00
CanbiZ
1442ebea88 migrate from VE to VED
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-24 15:20:25 +02:00
CanbiZ
8a7ddb05dc Improve MariaDB setup and repository update logic
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Enhanced the setup_mariadb function to better handle MariaDB repository updates, version checks, and upgrade flows. The script now updates the repository if the version differs, provides clearer messaging, and ensures proper upgrade steps for both repository and package updates.
2025-10-24 15:16:37 +02:00
CanbiZ
6a74c6d51c Add error handling to package and archive operations
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
This commit adds error checking and user-friendly error messages to various package installation, archive extraction, and build steps throughout the script. It ensures that failures in commands such as apt, curl, tar, unzip, make, and others are detected, appropriate cleanup is performed, and informative error messages are displayed, improving robustness and debuggability.
2025-10-22 14:13:37 +02:00
CanbiZ
03c9654140 Standardize setup messages and simplify install logic
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Replaces various install/upgrade messages with standardized 'Setup <package> <version>' and 'msg_ok' calls for consistency. Removes redundant or verbose info/warning messages, simplifies dependency installation logic, and ensures error handling uses '|| true' where appropriate. This improves readability and reduces unnecessary output during package setup.
2025-10-22 14:00:54 +02:00
CanbiZ
61e3721c1d Cleanup MSG's
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-22 13:52:17 +02:00
CanbiZ
128db5320a
Update tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-21 17:09:20 +02:00
CanbiZ
a0dc98c454 Update tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-21 16:58:01 +02:00
CanbiZ
9b624944c7 Improve LXC template selection and cleanup hwaccel code
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Enhanced the LXC container creation process to prompt for available template versions if the requested template is missing, allowing users to select from available options interactively. Also refactored the hardware acceleration setup function for better readability and consistency, and made minor whitespace and formatting adjustments.
2025-10-21 14:12:26 +02:00
Tobias
74616c7b73
chore
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-21 11:49:11 +02:00
Tobias
dce2be7571
fix: lspci
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-21 11:45:46 +02:00
Tobias
b0fe58c623
Update setup_hwaccel function notes
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Clarified notes regarding library requirements and repository sources.
2025-10-21 11:20:12 +02:00
Tobias
d099b83462
hwacel, by @micklesk
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-21 11:19:24 +02:00
CanbiZ
300db370f0 Update tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-21 10:38:14 +02:00
CanbiZ
098afdb9dc Update tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-21 10:05:29 +02:00
CanbiZ
dbbf14f22a Improve MySQL setup for Debian Trixie compatibility
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Refactored MySQL installation logic to use Bookworm packages for Debian testing/unstable (Trixie, Forky, Sid) instead of blocking installation. Added conditional purge of MySQL packages only if installed and improved messaging for unsupported distributions.
2025-10-21 10:00:06 +02:00
CanbiZ
915e2d4f58 Update tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-21 09:57:33 +02:00
CanbiZ
a0212eb276 Replace su with runuser for PostgreSQL operations
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Updated the setup_postgresql function to use runuser instead of su for executing pg_dumpall and psql as the postgres user. This improves compatibility and security when running these commands.
2025-10-21 09:50:34 +02:00
CanbiZ
4ac0db3dc2 Update Node.js version and improve MySQL setup for Debian
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Bumps Node.js version from 22 to 24 in ente-install.sh. Enhances MySQL setup in tools.func to explicitly block installation on Debian Trixie/forky/sid due to incompatibility, providing alternative solutions and clearer messaging.
2025-10-21 09:46:00 +02:00
CanbiZ
606eefd71d Update tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-20 11:29:14 +02:00
CanbiZ
aea08ee1ce fix ssl issue psql 17
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-10-20 11:16:14 +02:00