From de268d6fedb70696cc87f6661e32e4362148114f Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 27 Mar 2022 13:50:16 -0400 Subject: [PATCH] Update heimdalldashboard-install.sh --- setup/heimdalldashboard-install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup/heimdalldashboard-install.sh b/setup/heimdalldashboard-install.sh index ec67e047..56b7fb5a 100644 --- a/setup/heimdalldashboard-install.sh +++ b/setup/heimdalldashboard-install.sh @@ -67,14 +67,14 @@ echo -e "${CM}${CL} \r" RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/Heimdall/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]') echo -en "${GN} Installing Heimdall Dashboard ${RELEASE}... " -curl --silent -o /opt/${RELEASE}.tar.gz -L "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz" &>/dev/null -cd /opt +curl --silent -o ${RELEASE}.tar.gz -L "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz" &>/dev/null tar xvzf ${RELEASE}.tar.gz &>/dev/null -echo -e "${CM}${CL} \r" - -SER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest \ +VER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest \ | grep "tag_name" \ | awk '{print substr($2, 3, length($2)-4) }') +rm -rf ${RELEASE}.tar.gz +mv Heimdall-${VER} /opt/Heimdall +echo -e "${CM}${CL} \r" echo -en "${GN} Creating Service... " service_path="/etc/systemd/system/heimdall.service" @@ -87,7 +87,7 @@ Restart=always RestartSec=5 Type=simple User=root -WorkingDirectory=/opt/Heimdall-${SER} +WorkingDirectory=/opt/Heimdall ExecStart="/usr/bin/php" artisan serve --port 7990 --host 0.0.0.0 TimeoutStopSec=30