From 26c89599027d5a630578619ebf17d34e09a2b49c Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Wed, 1 Jul 2026 15:36:12 +0200 Subject: [PATCH] homarr: fix: update-fail (#15512) * homarr: fix: update-fail * homarr: fix: rm --- ct/homarr.sh | 4 ++-- install/homarr-install.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ct/homarr.sh b/ct/homarr.sh index c288cab41..82a27cfd6 100644 --- a/ct/homarr.sh +++ b/ct/homarr.sh @@ -51,7 +51,7 @@ function update_script() { ReadWritePaths=-/appdata/redis -/var/lib/redis -/var/log/redis -/var/run/redis -/etc/redis EOF systemctl daemon-reload - rm /opt/run_homarr.sh + rm -f /opt/run_homarr.sh msg_ok "Fixed old structure" fi @@ -68,7 +68,7 @@ EOF 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 + rm -f /etc/nginx/nginx.conf cp /opt/homarr/nginx.conf /etc/nginx/templates/nginx.conf msg_ok "Updated Homarr" diff --git a/install/homarr-install.sh b/install/homarr-install.sh index f46d09c5b..0a976b668 100644 --- a/install/homarr-install.sh +++ b/install/homarr-install.sh @@ -49,7 +49,7 @@ 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 +rm -f /etc/nginx/nginx.conf mkdir -p /etc/nginx/templates cp /opt/homarr/nginx.conf /etc/nginx/templates/nginx.conf echo $'#!/bin/bash\ncd /opt/homarr/apps/cli && node ./cli.cjs "$@"' >/usr/bin/homarr