Update Pf2eTools.sh

Fix update script
This commit is contained in:
Johanna Rührig 2025-01-02 08:06:34 +01:00 committed by GitHub
parent ba536127b3
commit d06aeea8cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,8 +48,9 @@ function update_script() {
cd "/opt/${APP}"
wget -q "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip"
unzip -q "${RELEASE}.zip"
mv "${APP}-${RELEASE:1}" /opt/Pf2eTools
echo "${RELEASE}" >/opt/${APP}_version.txt
rm -rf "/opt/${APP}"
mv "${APP}-${RELEASE:1}" "/opt/${APP}"
echo "${RELEASE}" >"/opt/${APP}_version.txt"
msg_ok "Updated ${APP}"
chown -R www-data: "/opt/${APP}"