534 Commits

Author SHA1 Message Date
CanbiZ
b840a8aa32 Replace init_error_traps with catch_errors in scripts
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Replaces all occurrences of the 'init_error_traps' function with 'catch_errors' across container and install scripts for consistency in error handling. Also adjusts indentation and formatting in some scripts for improved readability.
2025-09-19 08:53:49 +02:00
CanbiZ
17cb74a8f0 Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 08:28:10 +02:00
CanbiZ
864e63c04d Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 08:27:08 +02:00
CanbiZ
271665dfef Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 08:26:22 +02:00
CanbiZ
afecb023cc Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 08:23:41 +02:00
CanbiZ
ff0e6794d4 Update build.func 2025-09-18 13:07:07 +02:00
CanbiZ
7101291349 Update build.func 2025-09-18 13:04:11 +02:00
CanbiZ
65bc905cff Update build.func 2025-09-17 17:08:52 +02:00
CanbiZ
776c39b8fc Update build.func 2025-09-17 17:07:56 +02:00
CanbiZ
82707ce199 Improve whiptail menu UI in install_script function
Updated the whiptail menu in the install_script function to enhance usability. Changes include adjusting the backtitle, adding --fb and --notags options, updating the menu prompt with navigation instructions, and increasing the menu width for better display.
2025-09-17 17:00:39 +02:00
CanbiZ
699aaefdb5 Update build.func 2025-09-17 16:57:55 +02:00
CanbiZ
8cd3defbd5 Update build.func 2025-09-17 16:57:08 +02:00
CanbiZ
a0b9bdbbec Improve settings menu instructions in build script
Updated the settings menu prompt to include navigation instructions for users, clarifying how to use TAB, Arrow keys, and ENTER to select options.
2025-09-17 16:56:43 +02:00
CanbiZ
f36f1b3132 Update whiptail menu titles and dimensions
Changed menu titles to reference 'Community-Scripts' instead of generic 'SETTINGS' and adjusted menu width from 60 to 40 in install_script for improved clarity and UI consistency.
2025-09-17 16:55:06 +02:00
CanbiZ
95171c5025 Update build.func 2025-09-17 16:17:11 +02:00
CanbiZ
322fd681cb Refactor install_script menu and preset handling
Simplifies the install_script function by replacing the PRESET environment variable logic with direct CLI argument support for preset selection. Updates the whiptail menu options, streamlines case handling, and improves error handling for invalid options. This refactor makes the script interface more intuitive and reduces code complexity.
2025-09-17 16:13:02 +02:00
CanbiZ
c7456236a0 Refactor settings menu and exit handling in build.func
Simplifies the menu item logic for settings and app defaults, updates the whiptail menu to use custom button labels, and replaces direct exit calls with the exit_script function for consistent script termination.
2025-09-17 16:02:42 +02:00
CanbiZ
92b1328f89 Update build.func 2025-09-17 15:56:56 +02:00
CanbiZ
b9b52a6642 Remove diagnostics and storage menu options
Eliminates the diagnostics and storage options from the install_script function, consolidating the menu and redirecting the diagnostics option to settings_menu. This simplifies the script's menu structure and removes unused or deprecated functionality.
2025-09-17 15:49:12 +02:00
CanbiZ
8b34ae346b Refactor install menu and add settings submenu
Updated the install menu labels for clarity and dynamic numbering. Introduced a new settings_menu function to manage diagnostic, default, and storage settings, with conditional options based on the presence of app defaults.
2025-09-17 15:41:13 +02:00
CanbiZ
b678f8828a Fix storage variable assignment in echo_storage_summary_from_file
Corrects the logic for setting TEMPLATE_STORAGE and CONTAINER_STORAGE by checking if tpl and ct are set, respectively, and calling choose_and_set_storage_for_file if not. This ensures storage variables are properly initialized before use.
2025-09-17 15:34:04 +02:00
CanbiZ
6c9d1d0e23 Update build.func 2025-09-17 15:26:17 +02:00
CanbiZ
cfed8d6e69 Update build.func 2025-09-17 15:17:07 +02:00
CanbiZ
b622505d81 Update build.func 2025-09-17 14:58:16 +02:00
CanbiZ
8ce34b4ee0 Refactor storage selection and enforce user prompt
Unifies and refactors storage selection logic to always prompt the user for container and template storage choices unless only one option exists, as per requirement #4. Removes legacy selection functions, updates all relevant install and menu flows to use the new logic, and ensures storage settings are consistently written to vars files and environment variables. Also improves code clarity and maintains storage summary output.
2025-09-17 13:59:14 +02:00
CanbiZ
ca28e419ef Update build.func 2025-09-17 13:02:37 +02:00
CanbiZ
81329f74b1 Update build.func 2025-09-17 12:07:36 +02:00
CanbiZ
de057c727c Update build.func 2025-09-17 11:56:41 +02:00
CanbiZ
e2306361c5 Update build.func 2025-09-17 11:17:54 +02:00
CanbiZ
d8756722bc Update build.func 2025-09-17 10:52:03 +02:00
CanbiZ
ee43569916 Update build.func 2025-09-16 16:14:20 +02:00
CanbiZ
4736022898 Update build.func 2025-09-16 16:08:09 +02:00
CanbiZ
b980b7db48 Update build.func 2025-09-16 15:33:09 +02:00
CanbiZ
eb6c16f313 Update build.func 2025-09-16 15:13:10 +02:00
CanbiZ
094f99d4bd Update build.func 2025-09-16 15:01:39 +02:00
CanbiZ
86186a5dbd Update build.func 2025-09-16 14:50:57 +02:00
CanbiZ
47d3048115 Update build.func 2025-09-16 14:44:58 +02:00
CanbiZ
d3eecd770a Update build.func 2025-09-16 14:38:35 +02:00
CanbiZ
d55c7776ec Update build.func 2025-09-16 14:31:46 +02:00
CanbiZ
022863386e Update build.func 2025-09-16 14:30:55 +02:00
CanbiZ
28fce51699 Update build.func 2025-09-16 14:11:50 +02:00
CanbiZ
df2e4e6030 Update build.func 2025-09-16 14:10:44 +02:00
CanbiZ
6eb408569e comments over comments 2025-09-16 14:05:17 +02:00
CanbiZ
311d3b2786 Update build.func 2025-09-16 13:44:49 +02:00
CanbiZ
4c4f4ecfe6 Refactor and modernize build.func script
Refactored case statements and conditional checks to use more idiomatic and consistent Bash syntax. Replaced German comments with English, improved readability by splitting long lines, and standardized variable assignments. Enhanced maintainability by using case/esac and if/then constructs, and replaced double-bracketed conditionals with POSIX-compliant single brackets where appropriate.
2025-09-16 13:13:20 +02:00
CanbiZ
d6a1183824 Update build.func 2025-09-16 13:06:13 +02:00
CanbiZ
6ca38e23ae Expand and refactor install_script menu options
Added new preset and menu options for App Defaults, Diagnostics, and Storage Settings. Refactored the menu to be dynamically built and improved handling for each choice, including better diagnostics toggling and support for app-specific defaults. This enhances flexibility and user experience in the installation script.
2025-09-16 13:05:53 +02:00
CanbiZ
9a1f0de47e Refactor app defaults save logic and remove error handlers
Reworks the app defaults save/update logic in misc/build.func to support updating existing defaults with a diff and interactive menu, and adds robust var_* parsing and whitelisting. Removes legacy error and curl handler functions from misc/core.func, streamlining error handling and reducing code duplication.
2025-09-16 13:05:02 +02:00
CanbiZ
ce79bd0c08 outsource 2025-09-16 09:57:35 +02:00
CanbiZ
266d121e92 Update build.func 2025-09-15 15:52:52 +02:00