From 84d36eba84c07057c86f30979a695d5fb4167c31 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Sun, 5 Jan 2025 23:28:24 +0100 Subject: [PATCH] Update 5etools --- ct/5etools.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ct/5etools.sh b/ct/5etools.sh index b0a0df27..177cdfa4 100644 --- a/ct/5etools.sh +++ b/ct/5etools.sh @@ -57,14 +57,12 @@ function update_script() { $STD npm run build cd ~ echo "${RELEASE}" >"/opt/${APP}_version.txt" - msg_ok "Updated base 5etools" - chown -R www-data: "/opt/${APP}" chmod -R 755 "/opt/${APP}" - + msg_ok "Updated base 5etools" # Cleaning up msg_info "Cleaning Up" - rm "${RELEASE}.zip" + rm -rf /opt/${RELEASE}.zip $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleanup Completed" @@ -87,11 +85,11 @@ function update_script() { rm -rf "/opt/${APP}/img" mv "${APP}-img-${IMG_RELEASE:1}" "/opt/${APP}/img" echo "${IMG_RELEASE}" >"/opt/${APP}_IMG_version.txt" - msg_ok "Updating 5etools images" - chown -R www-data: "/opt/${APP}" chmod -R 755 "/opt/${APP}" + msg_ok "Updating 5etools images" + # Cleaning up msg_info "Cleaning Up" rm -rf /opt/${RELEASE}.zip