mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-09 01:09:16 +00:00
Compare commits
No commits in common. "8b58af894e1451603168dbc47cfe012dad274fe8" and "1d9c70ccf7bb22178b0e21d746905a1d887b08f9" have entirely different histories.
8b58af894e
...
1d9c70ccf7
@ -47,10 +47,7 @@ function update_script() {
|
|||||||
msg_info "Updating base 5etools"
|
msg_info "Updating base 5etools"
|
||||||
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 -q "${RELEASE}.zip"
|
unzip -q "${RELEASE}.zip"
|
||||||
mv "/opt/${APP}/img" "/opt/img-backup"
|
mv "${APP}-src-${RELEASE:1}" "/opt/${APP}/img"
|
||||||
rm -rf "/opt/${APP}"
|
|
||||||
mv "${APP}-src-${RELEASE:1}" "/opt/${APP}"
|
|
||||||
mv "/opt/img-backup" "/opt/${APP}/img"
|
|
||||||
echo "${RELEASE}" >"/opt/${APP}_version.txt"
|
echo "${RELEASE}" >"/opt/${APP}_version.txt"
|
||||||
msg_ok "Updated base 5etools"
|
msg_ok "Updated base 5etools"
|
||||||
|
|
||||||
@ -79,8 +76,7 @@ function update_script() {
|
|||||||
msg_info "Updating 5etools images"
|
msg_info "Updating 5etools images"
|
||||||
curl -sSL "https://github.com/5etools-mirror-2/5etools-img/archive/refs/tags/${IMG_RELEASE}.zip" > "${IMG_RELEASE}.zip"
|
curl -sSL "https://github.com/5etools-mirror-2/5etools-img/archive/refs/tags/${IMG_RELEASE}.zip" > "${IMG_RELEASE}.zip"
|
||||||
unzip -q "${IMG_RELEASE}.zip"
|
unzip -q "${IMG_RELEASE}.zip"
|
||||||
rm -rf "/opt/${APP}/img"
|
mv "${APP}-img-${IMG_RELEASE:1}" /opt/${APP}/img
|
||||||
mv "${APP}-img-${IMG_RELEASE:1}" "/opt/${APP}/img"
|
|
||||||
echo "${IMG_RELEASE}" >"/opt/${APP}_IMG_version.txt"
|
echo "${IMG_RELEASE}" >"/opt/${APP}_IMG_version.txt"
|
||||||
msg_ok "Updating 5etools images"
|
msg_ok "Updating 5etools images"
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"categories": [
|
"categories": [
|
||||||
0
|
0
|
||||||
],
|
],
|
||||||
"date_created": "2025-01-02",
|
"date_created": "2025-01-01",
|
||||||
"type": "ct",
|
"type": "ct",
|
||||||
"updateable": true,
|
"updateable": true,
|
||||||
"privileged": false,
|
"privileged": false,
|
||||||
|
Loading…
Reference in New Issue
Block a user