1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-04-19 22:08:07 +00:00

fix update function (#2996)

This commit is contained in:
Slaviša Arežina 2025-03-11 08:35:16 +01:00 committed by GitHub
parent 35efc4ed8a
commit 9953d8d662
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,10 +32,10 @@ function update_script() {
msg_info "Updating ${APP} to v${VERSION}" msg_info "Updating ${APP} to v${VERSION}"
cd /opt cd /opt
mv /opt/teddycloud /opt_teddycloud_bak mv /opt/teddycloud /opt/teddycloud_bak
wget -q "https://github.com/toniebox-reverse-engineering/teddycloud/releases/download/${RELEASE}/teddycloud.amd64.release_v${VERSION}.zip" wget -q "https://github.com/toniebox-reverse-engineering/teddycloud/releases/download/${RELEASE}/teddycloud.amd64.release_v${VERSION}.zip"
unzip -q -d /opt/teddycloud teddycloud.amd64.release_v${VERSION}.zip unzip -q -d /opt/teddycloud teddycloud.amd64.release_v${VERSION}.zip
cp -R /opt_teddycloud_bak/certs /opt_teddycloud_bak/config /opt_teddycloud_bak/data /opt/teddycloud cp -R /opt/teddycloud_bak/certs /opt/teddycloud_bak/config /opt/teddycloud_bak/data /opt/teddycloud
echo "${VERSION}" >"/opt/${APP}_version.txt" echo "${VERSION}" >"/opt/${APP}_version.txt"
msg_ok "Updated ${APP} to v${VERSION}" msg_ok "Updated ${APP} to v${VERSION}"