From 2e2300865e0199d6c429270fc2bb1ed4c275e0b5 Mon Sep 17 00:00:00 2001 From: Tobias Date: Sun, 14 Dec 2025 15:49:44 +0100 Subject: [PATCH] fix redis --- ct/homarr.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ct/homarr.sh b/ct/homarr.sh index 4598faa5b..5b69526a0 100644 --- a/ct/homarr.sh +++ b/ct/homarr.sh @@ -40,6 +40,7 @@ function update_script() { msg_info "Fixing old structure" $STD apt install -y musl-dev ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1 + cp /opt/homarr/.env /opt/homarr.env echo "REDIS_IS_EXTERNAL='true'" >> /opt/homarr.env sed -i 's|^ExecStart=.*|ExecStart=/opt/homarr/run.sh|' /etc/systemd/system/homarr.service sed -i 's|^EnvironmentFile=.*|EnvironmentFile=-/opt/homarr.env|' /etc/systemd/system/homarr.service @@ -52,7 +53,6 @@ ReadWritePaths=-/appdata/redis -/var/lib/redis -/var/log/redis -/var/run/redis - EOF # TODO: change in json systemctl daemon-reload - cp /opt/homarr/.env /opt/homarr.env rm /opt/run_homarr.sh msg_ok "Fixed old structure" fi @@ -64,18 +64,14 @@ EOF NODE_VERSION=$(curl -s https://raw.githubusercontent.com/homarr-labs/homarr/dev/package.json | jq -r '.engines.node | split(">=")[1] | split(".")[0]') setup_nodejs + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "homarr" "homarr-labs/homarr" "prebuild" "latest" "/opt/homarr" "build-amd64.tar.gz" - rm -rf /opt/homarr - fetch_and_deploy_gh_release "homarr" "homarr-labs/homarr" "prebuild" "latest" "/opt/homarr" "build-amd64.tar.gz" - - msg_info "Updating Homarr to v${RELEASE}" + msg_info "Updating Homarr" cp /opt/homarr/redis.conf /etc/redis/redis.conf rm /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 - chmod +x /usr/bin/homarr - msg_ok "Updated Homarr to v${RELEASE}" + msg_ok "Updated Homarr" msg_info "Starting Services" chmod +x /opt/homarr/run.sh