From 239b9ea0bad419c1fd71a9940f130c4a8f9fc8ec Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 10 Nov 2023 05:25:46 -0500 Subject: [PATCH] Update kavita.sh - default Debian 12 - set update path --- ct/kavita.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ct/kavita.sh b/ct/kavita.sh index 4d86cd74..ca448e24 100644 --- a/ct/kavita.sh +++ b/ct/kavita.sh @@ -23,7 +23,7 @@ var_disk="8" var_cpu="2" var_ram="2048" var_os="debian" -var_version="11" +var_version="12" variables color catch_errors @@ -54,8 +54,13 @@ function update_script() { header_info if [[ ! -d /opt/Kavita ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating $APP LXC" -apt-get update &>/dev/null -apt-get -y upgrade &>/dev/null +systemctl stop kavita +RELEASE=$(curl -s https://api.github.com/repos/Kareadita/Kavita/releases/latest | grep "tag_name" | awk '{print substr($2, 2, l> +tar -xvzf <(curl -fsSL https://github.com/Kareadita/Kavita/releases/download/$RELEASE/kavita-linux-x64.tar.gz) &>/dev/null +rm -rf Kavita/config +cp -r Kavita/* /opt/Kavita +rm -rf Kavita +systemctl start kavita msg_ok "Updated $APP LXC" exit }