mirror of https://github.com/tteck/Proxmox.git
parent
04647388bf
commit
239b9ea0ba
11
ct/kavita.sh
11
ct/kavita.sh
|
@ -23,7 +23,7 @@ var_disk="8"
|
||||||
var_cpu="2"
|
var_cpu="2"
|
||||||
var_ram="2048"
|
var_ram="2048"
|
||||||
var_os="debian"
|
var_os="debian"
|
||||||
var_version="11"
|
var_version="12"
|
||||||
variables
|
variables
|
||||||
color
|
color
|
||||||
catch_errors
|
catch_errors
|
||||||
|
@ -54,8 +54,13 @@ function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -d /opt/Kavita ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -d /opt/Kavita ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
msg_info "Updating $APP LXC"
|
msg_info "Updating $APP LXC"
|
||||||
apt-get update &>/dev/null
|
systemctl stop kavita
|
||||||
apt-get -y upgrade &>/dev/null
|
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"
|
msg_ok "Updated $APP LXC"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue