mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-09 01:09:16 +00:00
Update Pf2eTools.sh
Fix update script
This commit is contained in:
parent
ba536127b3
commit
d06aeea8cb
@ -48,8 +48,9 @@ function update_script() {
|
|||||||
cd "/opt/${APP}"
|
cd "/opt/${APP}"
|
||||||
wget -q "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip"
|
wget -q "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip"
|
||||||
unzip -q "${RELEASE}.zip"
|
unzip -q "${RELEASE}.zip"
|
||||||
mv "${APP}-${RELEASE:1}" /opt/Pf2eTools
|
rm -rf "/opt/${APP}"
|
||||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
mv "${APP}-${RELEASE:1}" "/opt/${APP}"
|
||||||
|
echo "${RELEASE}" >"/opt/${APP}_version.txt"
|
||||||
msg_ok "Updated ${APP}"
|
msg_ok "Updated ${APP}"
|
||||||
|
|
||||||
chown -R www-data: "/opt/${APP}"
|
chown -R www-data: "/opt/${APP}"
|
||||||
|
Loading…
Reference in New Issue
Block a user