remove jq dependency and copy exisitng method of getting version from other scripts

This commit is contained in:
Jesse Antoszyk 2024-10-22 12:57:31 -04:00
parent 62786fe954
commit ccc8a7a165
1 changed files with 4 additions and 5 deletions

View File

@ -95,11 +95,10 @@ $STD apt-get install -y --no-install-suggests \
git \ git \
make \ make \
openssl \ openssl \
python3 \ python3
jq
if [[ "$GHOSTFOLIO_VERSION" == "latest" ]]; then 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 fi
# Get the realease # Get the realease
@ -185,8 +184,8 @@ cat <<EOF >/etc/systemd/system/ghostfolio.service
[Unit] [Unit]
Description=ghostfolio Description=ghostfolio
[Service] [Service]
After=postgresql.servicei redis.service After=postgresql.service redis.service
Require=postgresql.servicei redis.service Require=postgresql.service redis.service
# Start Service # Start Service
ExecStart=/opt/ghostfolio/start.sh ExecStart=/opt/ghostfolio/start.sh
WorkingDirectory=/opt/ghostfolio/api/ WorkingDirectory=/opt/ghostfolio/api/