mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-03-13 00:50:01 +00:00
fix update function (#2996)
This commit is contained in:
parent
35efc4ed8a
commit
9953d8d662
@ -32,10 +32,10 @@ function update_script() {
|
||||
|
||||
msg_info "Updating ${APP} to v${VERSION}"
|
||||
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"
|
||||
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"
|
||||
msg_ok "Updated ${APP} to v${VERSION}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user