From ccc8a7a1657bed9c5ff8c881f724c7b2ec1c3006 Mon Sep 17 00:00:00 2001 From: Jesse Antoszyk <22500761+jcantosz@users.noreply.github.com> Date: Tue, 22 Oct 2024 12:57:31 -0400 Subject: [PATCH] remove jq dependency and copy exisitng method of getting version from other scripts --- install/ghostfolio-install.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/install/ghostfolio-install.sh b/install/ghostfolio-install.sh index 88dd8e10..dbd45fe5 100644 --- a/install/ghostfolio-install.sh +++ b/install/ghostfolio-install.sh @@ -95,11 +95,10 @@ $STD apt-get install -y --no-install-suggests \ git \ make \ openssl \ - python3 \ - jq + python3 if [[ "$GHOSTFOLIO_VERSION" == "latest" ]]; then - $STD GHOSTFOLIO_VERSION=$(curl -s https://api.github.com/repos/ghostfolio/ghostfolio/releases/latest | jq -r '.tag_name') + GHOSTFOLIO_VERSION=$(curl -sL https://api.github.com/repos/ghostfolio/ghostfolio/releases/latest | grep '"tag_name":' | cut -d'"' -f4) fi # Get the realease @@ -185,8 +184,8 @@ cat </etc/systemd/system/ghostfolio.service [Unit] Description=ghostfolio [Service] -After=postgresql.servicei redis.service -Require=postgresql.servicei redis.service +After=postgresql.service redis.service +Require=postgresql.service redis.service # Start Service ExecStart=/opt/ghostfolio/start.sh WorkingDirectory=/opt/ghostfolio/api/