mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-27 10:57:02 +02:00
Update heimdalldashboard-install.sh
This commit is contained in:
parent
457053041b
commit
de268d6fed
@ -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='[""]')
|
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}... "
|
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
|
curl --silent -o ${RELEASE}.tar.gz -L "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz" &>/dev/null
|
||||||
cd /opt
|
|
||||||
tar xvzf ${RELEASE}.tar.gz &>/dev/null
|
tar xvzf ${RELEASE}.tar.gz &>/dev/null
|
||||||
echo -e "${CM}${CL} \r"
|
VER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest \
|
||||||
|
|
||||||
SER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest \
|
|
||||||
| grep "tag_name" \
|
| grep "tag_name" \
|
||||||
| awk '{print substr($2, 3, length($2)-4) }')
|
| 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... "
|
echo -en "${GN} Creating Service... "
|
||||||
service_path="/etc/systemd/system/heimdall.service"
|
service_path="/etc/systemd/system/heimdall.service"
|
||||||
@ -87,7 +87,7 @@ Restart=always
|
|||||||
RestartSec=5
|
RestartSec=5
|
||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/Heimdall-${SER}
|
WorkingDirectory=/opt/Heimdall
|
||||||
ExecStart="/usr/bin/php" artisan serve --port 7990 --host 0.0.0.0
|
ExecStart="/usr/bin/php" artisan serve --port 7990 --host 0.0.0.0
|
||||||
TimeoutStopSec=30
|
TimeoutStopSec=30
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user