From e90363df718fa949cec0e37f99274bd74fdffcb1 Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Sat, 19 Jul 2025 17:43:31 +0200 Subject: [PATCH] Update customizable_post_install.sh --- scripts/post_install/customizable_post_install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/post_install/customizable_post_install.sh b/scripts/post_install/customizable_post_install.sh index c0bd2e9..afe5a4d 100644 --- a/scripts/post_install/customizable_post_install.sh +++ b/scripts/post_install/customizable_post_install.sh @@ -2168,8 +2168,6 @@ customize_bashrc_() { customize_bashrc() { msg_info2 "$(translate "Customizing bashrc for root user...")" - - set -euo pipefail msg_info "$(translate "Customizing bashrc for root user...")" local bashrc="/root/.bashrc" @@ -2868,7 +2866,6 @@ EOF configure_figurine() { - set -euo pipefail msg_info2 "$(translate "Installing and configuring Figurine...")" local version="1.3.0" @@ -2984,6 +2981,13 @@ configure_log2ram() { msg_info2 "$(translate "Preparing Log2RAM configuration")" sleep 2 + + if [[ -f /etc/log2ram.conf ]] && command -v log2ram >/dev/null 2>&1 && systemctl list-units --all | grep -q log2ram; then + msg_ok "$(translate "Log2RAM is already installed and configured correctly.")" + register_tool "log2ram" true + return 0 + fi + RAM_SIZE_GB=$(free -g | awk '/^Mem:/{print $2}') [[ -z "$RAM_SIZE_GB" || "$RAM_SIZE_GB" -eq 0 ]] && RAM_SIZE_GB=4