refactor: streamline ClickHouse and OxiCloud installation scripts; update RAM requirements

This commit is contained in:
MickLesk
2026-06-02 11:32:19 +02:00
parent a942dd7282
commit 25514eda40
7 changed files with 21 additions and 364 deletions

View File

@@ -39,9 +39,9 @@ trap on_interrupt INT
trap on_terminate TERM
error_handler() {
local exit_code="$1"
local line_number="$2"
local command="$3"
local exit_code="${1:-$?}"
local line_number="${2:-unknown}"
local command="${3:-unknown}"
# Exitcode 0 = kein Fehler → ignorieren
if [[ "$exit_code" -eq 0 ]]; then
@@ -113,7 +113,7 @@ network_check() {
msg_ok "Internet: ${ipv4_status} DNS: ${BL}${RESOLVEDIP}${CL}"
fi
set -e
trap 'error_handler $LINENO "$BASH_COMMAND"' ERR
trap 'error_handler $? $LINENO "$BASH_COMMAND"' ERR
}
# This function updates the Container OS by running apt-get update and upgrade