Update heimdalldashboard-install.sh
release version hold
This commit is contained in:
parent
822299b610
commit
4aa5e12268
1 changed files with 6 additions and 4 deletions
|
@ -27,15 +27,14 @@ $STD apt-get update
|
||||||
$STD apt-get install -y php8.3 php8.3-cli php8.3-{bz2,curl,mbstring,intl,sqlite3,zip,xml}
|
$STD apt-get install -y php8.3 php8.3-cli php8.3-{bz2,curl,mbstring,intl,sqlite3,zip,xml}
|
||||||
msg_ok "Installed PHP8.3"
|
msg_ok "Installed PHP8.3"
|
||||||
|
|
||||||
#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='[""]')
|
||||||
RELEASE=V2.5.8
|
|
||||||
msg_info "Installing Heimdall Dashboard ${RELEASE}"
|
msg_info "Installing Heimdall Dashboard ${RELEASE}"
|
||||||
wget -q https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz
|
wget -q https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz
|
||||||
tar xzf ${RELEASE}.tar.gz
|
tar xzf ${RELEASE}.tar.gz
|
||||||
#VER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
VER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
VER=2.5.8
|
|
||||||
rm -rf ${RELEASE}.tar.gz
|
rm -rf ${RELEASE}.tar.gz
|
||||||
mv Heimdall-${VER} /opt/Heimdall
|
mv Heimdall-${VER} /opt/Heimdall
|
||||||
|
$STD apt-get install -y composer
|
||||||
msg_ok "Installed Heimdall Dashboard ${RELEASE}"
|
msg_ok "Installed Heimdall Dashboard ${RELEASE}"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
@ -56,6 +55,9 @@ TimeoutStopSec=30
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" >$service_path
|
WantedBy=multi-user.target" >$service_path
|
||||||
systemctl enable -q --now heimdall.service
|
systemctl enable -q --now heimdall.service
|
||||||
|
cd /opt/Heimdall
|
||||||
|
COMPOSER_ALLOW_SUPERUSER=1 composer dump-autoload &>/dev/null
|
||||||
|
systemctl restart heimdall.service
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|
Loading…
Reference in a new issue