From 02efa7c07a807af0f57215ef2eb09efad9ae4333 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 14 Apr 2024 23:53:22 -0400 Subject: [PATCH] Update homarr-install.sh fix install --- install/homarr-install.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/install/homarr-install.sh b/install/homarr-install.sh index 0a7db8fa..2eb0ab4e 100644 --- a/install/homarr-install.sh +++ b/install/homarr-install.sh @@ -36,13 +36,15 @@ $STD npm install -g yarn msg_ok "Installed Node.js/Yarn" msg_info "Installing Homarr (Patience)" -mkdir -p /opt/homarr -RELEASE=$(curl -s https://api.github.com/repos/ajnart/homarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -wget -q -O- https://github.com/ajnart/homarr/archive/refs/tags/v${RELEASE}.tar.gz | $STD tar -xz -C /opt && mv /opt/homarr-${RELEASE}/* /opt/homarr -rm -rf /opt/homarr-${RELEASE} +$STD git clone -b dev https://github.com/ajnart/homarr.git /opt/homarr +cat </opt/homarr/.env +DATABASE_URL="file:./database/db.sqlite" +NEXTAUTH_URL="http://localhost:3000" +NEXTAUTH_SECRET="$(openssl rand -base64 32)" +NEXT_PUBLIC_DISABLE_ANALYTICS="true" +DEFAULT_COLOR_SCHEME="dark" +EOF cd /opt/homarr -wget -q -O /opt/homarr/.env https://raw.githubusercontent.com/ajnart/homarr/dev/.env.example -sed -i 's|NEXTAUTH_SECRET="[^"]*"|NEXTAUTH_SECRET="'"$(openssl rand -base64 32)"'"|' /opt/homarr/.env $STD yarn install $STD yarn build $STD yarn db:migrate