Update 5etools
Some checks are pending
Create Changelog Pull Request / update-changelog-pull-request (push) Waiting to run
Shellcheck / Shellcheck (push) Waiting to run

This commit is contained in:
CanbiZ 2025-01-05 23:28:24 +01:00 committed by GitHub
parent a0baf1cecc
commit 84d36eba84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,14 +57,12 @@ function update_script() {
$STD npm run build $STD npm run build
cd ~ cd ~
echo "${RELEASE}" >"/opt/${APP}_version.txt" echo "${RELEASE}" >"/opt/${APP}_version.txt"
msg_ok "Updated base 5etools"
chown -R www-data: "/opt/${APP}" chown -R www-data: "/opt/${APP}"
chmod -R 755 "/opt/${APP}" chmod -R 755 "/opt/${APP}"
msg_ok "Updated base 5etools"
# Cleaning up # Cleaning up
msg_info "Cleaning Up" msg_info "Cleaning Up"
rm "${RELEASE}.zip" rm -rf /opt/${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"
@ -87,11 +85,11 @@ function update_script() {
rm -rf "/opt/${APP}/img" 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"
chown -R www-data: "/opt/${APP}" chown -R www-data: "/opt/${APP}"
chmod -R 755 "/opt/${APP}" chmod -R 755 "/opt/${APP}"
msg_ok "Updating 5etools images"
# Cleaning up # Cleaning up
msg_info "Cleaning Up" msg_info "Cleaning Up"
rm -rf /opt/${RELEASE}.zip rm -rf /opt/${RELEASE}.zip