From 67cad1583bd862f558fdd29f91acf7a05f927c12 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 21 Apr 2024 23:13:45 -0400 Subject: [PATCH] Update dashy-install.sh tweak --- install/dashy-install.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/install/dashy-install.sh b/install/dashy-install.sh index d0709fb5..fce07cc5 100644 --- a/install/dashy-install.sh +++ b/install/dashy-install.sh @@ -29,19 +29,20 @@ ln -sf /usr/local/bin/node /usr/bin/node msg_ok "Installed Node.js" msg_info "Installing Yarn" -$STD npm install --global yarn +$STD npm install -g yarn ln -sf /usr/local/bin/yarn /usr/bin/yarn msg_ok "Installed Yarn" -msg_info "Installing Dashy (Patience)" +RELEASE=$(curl -s https://api.github.com/repos/Lissy93/dashy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') +msg_info "Installing Dashy ${RELEASE} (Patience)" mkdir -p /opt/dashy -#RELEASE=$(curl -s https://api.github.com/repos/Lissy93/dashy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -#wget -qO- https://github.com/Lissy93/dashy/archive/refs/tags/${RELEASE}.tar.gz | tar -xz -C /opt/dashy --strip-components=1 -wget -qO- https://github.com/Lissy93/dashy/archive/refs/tags/2.1.1.tar.gz | tar -xz -C /opt/dashy --strip-components=1 +wget -qO- https://github.com/Lissy93/dashy/archive/refs/tags/${RELEASE}.tar.gz | tar -xz -C /opt/dashy --strip-components=1 cd /opt/dashy +sed -i 's/NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build/NODE_OPTIONS=yarn vue-cli-service build/' /opt/dashy/package.json $STD yarn $STD yarn build -msg_ok "Installed Dashy" +echo "${RELEASE}" >/opt/${APPLICATION}_version.txt +msg_ok "Installed Dashy ${RELEASE}" msg_info "Creating Service" cat </etc/systemd/system/dashy.service