Update heimdalldashboard-install.sh

This commit is contained in:
tteckster 2022-03-23 15:10:38 -04:00 committed by GitHub
parent 241e442703
commit b540687d82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -65,11 +65,12 @@ apt-get install -y php-sqlite3 &>/dev/null
apt-get install -y php-zip &>/dev/null apt-get install -y php-zip &>/dev/null
echo -e "${CM}${CL} \r" echo -e "${CM}${CL} \r"
echo -en "${GN} Installing Heimdall Dashboard... " RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/Heimdall/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]')
RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/Heimdall/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]'); echo $RELEASE &&\ echo -en "${GN} Installing Heimdall Dashboard ${RELEASE}... "
curl --silent -o /opt/${RELEASE}.tar.gz -L "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz" curl --silent -o /opt/${RELEASE}.tar.gz -L "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz" &>/dev/null
cd /opt cd /opt
tar xvzf ${RELEASE}.tar.gz tar xvzf ${RELEASE}.tar.gz &>/dev/null
echo -e "${CM}${CL} \r"
echo -en "${GN} Creating Service... " echo -en "${GN} Creating Service... "
service_path="/etc/systemd/system/heimdall.service" service_path="/etc/systemd/system/heimdall.service"