diff --git a/ct/homarr.sh b/ct/homarr.sh index 605a1966d..7ecc5f116 100644 --- a/ct/homarr.sh +++ b/ct/homarr.sh @@ -34,24 +34,9 @@ function update_script() { systemctl stop redis-server msg_ok "Services Stopped" - { systemctl is-enabled nginx >/dev/null 2>&1 && systemctl disable -q --now nginx ; } || true - if ! { grep -q '^REDIS_IS_EXTERNAL=' /opt/homarr/.env 2>/dev/null || grep -q '^REDIS_IS_EXTERNAL=' /opt/homarr.env 2>/dev/null; }; then - DEBIAN_VERSION=$(cat /etc/debian_version 2>/dev/null | cut -d'.' -f1) - if [[ -n "$DEBIAN_VERSION" ]] && [[ "$DEBIAN_VERSION" -lt 13 ]]; then - msg_warn "⚠️ COMPATIBILITY WARNING ⚠️" - msg_warn "You are running Debian ${DEBIAN_VERSION}. Homarr's requires Debian 13" - msg_warn "" - msg_warn "Please Upgrade to Debian 13:" - msg_warn "See: https://github.com/community-scripts/ProxmoxVE/discussions/7489" - msg_warn "" - exit - fi msg_info "Fixing old structure" systemctl disable -q --now nginx - # fix musl issues because homarr compiles on alpine not debian soure: https://github.com/alexander-akhmetov/python-telegram/issues/3 - $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 @@ -75,7 +60,7 @@ 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" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "homarr" "homarr-labs/homarr" "prebuild" "latest" "/opt/homarr" "build-debian-amd64.tar.gz" msg_info "Updating Homarr" cp /opt/homarr/redis.conf /etc/redis/redis.conf