From 9953d8d662daa2e48b148548ebaf24cf628341f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Tue, 11 Mar 2025 08:35:16 +0100 Subject: [PATCH] fix update function (#2996) --- ct/teddycloud.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/teddycloud.sh b/ct/teddycloud.sh index 2d427e80e..1e68196dc 100644 --- a/ct/teddycloud.sh +++ b/ct/teddycloud.sh @@ -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}"