mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-04 06:50:15 +00:00
Update 5etools.sh
This commit is contained in:
parent
314f932764
commit
d3d6ec8b20
@ -45,6 +45,7 @@ function update_script() {
|
|||||||
|
|
||||||
# Execute Update
|
# Execute Update
|
||||||
msg_info "Updating base 5etools"
|
msg_info "Updating base 5etools"
|
||||||
|
cd /opt
|
||||||
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 "/opt/${APP}/img" "/opt/img-backup"
|
||||||
@ -93,7 +94,8 @@ function update_script() {
|
|||||||
|
|
||||||
# Cleaning up
|
# Cleaning up
|
||||||
msg_info "Cleaning Up"
|
msg_info "Cleaning Up"
|
||||||
rm "${IMG_RELEASE}.zip"
|
rm -rf /opt/${RELEASE}.zip
|
||||||
|
rm -rf ${IMG_RELEASE}.zip
|
||||||
$STD apt-get -y autoremove
|
$STD apt-get -y autoremove
|
||||||
$STD apt-get -y autoclean
|
$STD apt-get -y autoclean
|
||||||
msg_ok "Cleanup Completed"
|
msg_ok "Cleanup Completed"
|
||||||
|
Loading…
Reference in New Issue
Block a user