Skip to content

Commit

Permalink
Update 5etools
Browse files Browse the repository at this point in the history
  • Loading branch information
MickLesk authored Jan 5, 2025
1 parent a0baf1c commit 84d36eb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ct/5etools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 84d36eb

Please sign in to comment.