From ec831b8c02961920c53105e20edf670a9eab4369 Mon Sep 17 00:00:00 2001 From: Daniel Kukula Date: Sun, 31 Aug 2025 19:42:42 +0200 Subject: [PATCH] move version file to home folder --- ct/livebook.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/livebook.sh b/ct/livebook.sh index b0d0e9fe..f6cb59d6 100755 --- a/ct/livebook.sh +++ b/ct/livebook.sh @@ -32,7 +32,7 @@ function update_script() { msg_info "Checking for updates..." RELEASE=$(curl -fsSL https://api.github.com/repos/livebook-dev/livebook/releases/latest | grep "tag_name" | awk -F'"' '{print $4}') - if [[ "${RELEASE}" != "$(cat /opt/.livebook 2>/dev/null)" ]]; then + if [[ "${RELEASE}" != "$(cat /opt/livebook/.livebook 2>/dev/null)" ]]; then msg_info "Updating ${APP} LXC" $STD apt-get update $STD apt-get -y upgrade @@ -43,7 +43,7 @@ function update_script() { cd /opt/livebook || exit 1 $STD mix escript.install hex livebook --force - echo "$RELEASE" | $STD tee /opt/.livebook + echo "$RELEASE" | $STD tee /opt/livebook/.livebook chown -R livebook:livebook /opt/livebook /data msg_ok "Successfully updated to ${RELEASE}"