From f6c5b9f08c66097c71f4ec253eb58abe3c186373 Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Fri, 12 Apr 2024 19:34:45 +1000 Subject: [PATCH] [Homarr] Fix typo in upstream example config file --- install/homarr-install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install/homarr-install.sh b/install/homarr-install.sh index 54ccf3a72..4f9eceaba 100644 --- a/install/homarr-install.sh +++ b/install/homarr-install.sh @@ -38,14 +38,14 @@ 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} +cd /opt +git clone https://github.com/ajnart/homarr.git 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 --omit=optional -$STD yarn build --omit=optional +sed 's/ $//' /opt/homarr/.env # Get rid of space at the end of last config file line +$STD yarn install +$STD yarn build $STD yarn db:migrate msg_ok "Installed Homarr"