diff --git a/ct/iventoy.sh b/ct/iventoy.sh index 885519c6..9d15320b 100644 --- a/ct/iventoy.sh +++ b/ct/iventoy.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/DrEVILish/Proxmox/main/misc/build.func) +source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) # Copyright (c) 2021-2024 tteck # Author: tteck (tteckster) # License: MIT @@ -52,9 +52,22 @@ function default_settings() { function update_script() { header_info if [[ ! -d /opt/iventoy ]]; then msg_error "No ${APP} Installation Found!"; exit; fi +msg_info "Stopping ${APP} LXC" +systemctl stop iventoy.service +msg_ok "Stopped ${APP} LXC" + msg_info "Updating ${APP} LXC" +rm -rf /opt/iventoy apt-get update &>/dev/null apt-get -y upgrade &>/dev/null +wget -q $(curl -s https://api.github.com/repos/ventoy/pxe/releases/latest | grep download | grep linux-free | cut -d\" -f4) +tar -C /opt/iventoy -xzf iventoy*.tar.gz +rm -rf iventoy*.tar.gz +msg_ok "Updated ${APP} LXC" + +msg_info "Starting ${APP} LXC" +systemctl start autobrr.service +msg_ok "Started ${APP} LXC" msg_ok "Updated Successfully" exit } @@ -64,5 +77,5 @@ build_container description msg_ok "Completed Successfully!\n" -echo -e "${APP} should be reachable by going to the following URL. http://${IP}:26000/ <- work out +echo -e "${APP} should be reachable by going to the following URL. http://${IP}:26000/ ${BL}http://${IP}/admin${CL} \n"