|
|
@ -1,5 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
#!/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 |
|
|
|
# Copyright (c) 2021-2024 tteck |
|
|
|
# Author: tteck (tteckster) |
|
|
|
# Author: tteck (tteckster) |
|
|
|
# License: MIT |
|
|
|
# License: MIT |
|
|
@ -52,9 +52,22 @@ function default_settings() { |
|
|
|
function update_script() { |
|
|
|
function update_script() { |
|
|
|
header_info |
|
|
|
header_info |
|
|
|
if [[ ! -d /opt/iventoy ]]; then msg_error "No ${APP} Installation Found!"; exit; fi |
|
|
|
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" |
|
|
|
msg_info "Updating ${APP} LXC" |
|
|
|
|
|
|
|
rm -rf /opt/iventoy |
|
|
|
apt-get update &>/dev/null |
|
|
|
apt-get update &>/dev/null |
|
|
|
apt-get -y upgrade &>/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" |
|
|
|
msg_ok "Updated Successfully" |
|
|
|
exit |
|
|
|
exit |
|
|
|
} |
|
|
|
} |
|
|
@ -64,5 +77,5 @@ build_container |
|
|
|
description |
|
|
|
description |
|
|
|
|
|
|
|
|
|
|
|
msg_ok "Completed Successfully!\n" |
|
|
|
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" |
|
|
|
${BL}http://${IP}/admin${CL} \n" |
|
|
|