From 8dacebf747b51e6e05c3b8ca8b86cd74cd2be967 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 10 Apr 2026 20:26:38 +0000 Subject: [PATCH] fix: ensure trailing newline in redis.conf before appending bind directive in homarr scripts Agent-Logs-Url: https://github.com/community-scripts/ProxmoxVE/sessions/69891642-9467-46d1-a5d4-004cb66aa824 Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> --- ct/homarr.sh | 1 + install/homarr-install.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/ct/homarr.sh b/ct/homarr.sh index 1af49547d..f1e66e0c1 100644 --- a/ct/homarr.sh +++ b/ct/homarr.sh @@ -65,6 +65,7 @@ EOF msg_info "Updating Homarr" cp /opt/homarr/redis.conf /etc/redis/redis.conf + sed -i -e '$a\' /etc/redis/redis.conf grep -q '^bind 127.0.0.1 -::1$' /etc/redis/redis.conf || echo "bind 127.0.0.1 -::1" >> /etc/redis/redis.conf rm /etc/nginx/nginx.conf cp /opt/homarr/nginx.conf /etc/nginx/templates/nginx.conf diff --git a/install/homarr-install.sh b/install/homarr-install.sh index ef6c23616..f8e39c3a6 100644 --- a/install/homarr-install.sh +++ b/install/homarr-install.sh @@ -47,6 +47,7 @@ mkdir -p /appdata/redis chown -R redis:redis /appdata/redis chmod 744 /appdata/redis cp /opt/homarr/redis.conf /etc/redis/redis.conf +sed -i -e '$a\' /etc/redis/redis.conf grep -q '^bind 127.0.0.1 -::1$' /etc/redis/redis.conf || echo "bind 127.0.0.1 -::1" >>/etc/redis/redis.conf rm /etc/nginx/nginx.conf mkdir -p /etc/nginx/templates