mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-10 01:39:17 +00:00
Update 5etools-install.sh
This commit is contained in:
parent
d87c0e6e41
commit
5ef588e073
@ -27,16 +27,18 @@ msg_ok "Installed Dependencies"
|
|||||||
msg_info "Set up base 5etools"
|
msg_info "Set up base 5etools"
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/5etools-mirror-3/5etools-src/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
RELEASE=$(curl -s https://api.github.com/repos/5etools-mirror-3/5etools-src/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
wget -q "https://github.com/5etools-mirror-3/5etools-src/archive/refs/tags/${RELEASE}.zip"
|
wget -q "https://github.com/5etools-mirror-3/5etools-src/archive/refs/tags/${RELEASE}.zip"
|
||||||
unzip -j "${RELEASE}.zip" -d "/opt/${APP}"
|
unzip "${RELEASE}.zip"
|
||||||
echo "${RELEASE}" >"/opt/${APP}_version.txt"
|
mv "5etools-src-${RELEASE:1}" /opt/5etools
|
||||||
|
echo "${RELEASE}" >"/opt/5etools_version.txt"
|
||||||
rm "${RELEASE}.zip"
|
rm "${RELEASE}.zip"
|
||||||
msg_ok "Set up base 5etools"
|
msg_ok "Set up base 5etools"
|
||||||
|
|
||||||
msg_info "Set up 5etools images"
|
msg_info "Set up 5etools images"
|
||||||
IMG_RELEASE=$(curl -s https://api.github.com/repos/5etools-mirror-2/5etools-img/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
IMG_RELEASE=$(curl -s https://api.github.com/repos/5etools-mirror-2/5etools-img/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
wget -q "https://github.com/5etools-mirror-2/5etools-img/archive/refs/tags/${IMG_RELEASE}.zip"
|
wget -q "https://github.com/5etools-mirror-2/5etools-img/archive/refs/tags/${IMG_RELEASE}.zip"
|
||||||
unzip -j "${IMG_RELEASE}.zip" -d "/opt/${APP}/img"
|
unzip "${IMG_RELEASE}.zip"
|
||||||
echo "${IMG_RELEASE}" >"/opt/${APP}_IMG_version.txt"
|
mv "5etools-img-${IMG_RELEASE:1}" /opt/5etools/img
|
||||||
|
echo "${IMG_RELEASE}" >"/opt/5etools_IMG_version.txt"
|
||||||
rm "${IMG_RELEASE}.zip"
|
rm "${IMG_RELEASE}.zip"
|
||||||
msg_ok "Set up 5etools images"
|
msg_ok "Set up 5etools images"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user