|
|
|
@ -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
|
|
|
|
|
}
|
|
|
|
|