|
|
@ -55,11 +55,25 @@ function default_settings() { |
|
|
|
function update_script() { |
|
|
|
function update_script() { |
|
|
|
header_info |
|
|
|
header_info |
|
|
|
if [[ ! -d /etc/pihole ]]; then msg_error "No ${APP} Installation Found!"; exit; fi |
|
|
|
if [[ ! -d /etc/pihole ]]; then msg_error "No ${APP} Installation Found!"; exit; fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UPD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 10 59 2 \ |
|
|
|
|
|
|
|
"1" "Update LXC" ON \ |
|
|
|
|
|
|
|
"2" "Update PiHole" OFF \ |
|
|
|
|
|
|
|
3>&1 1>&2 2>&3) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
header_info |
|
|
|
|
|
|
|
if [ "$UPD" == "1" ]; then |
|
|
|
msg_info "Updating ${APP} LXC" |
|
|
|
msg_info "Updating ${APP} LXC" |
|
|
|
apt-get update &>/dev/null |
|
|
|
apt-get update &>/dev/null |
|
|
|
apt-get -y upgrade &>/dev/null |
|
|
|
apt-get -y upgrade &>/dev/null |
|
|
|
msg_ok "Updated Successfully" |
|
|
|
msg_ok "Updated ${APP} LXC" |
|
|
|
|
|
|
|
exit |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
if [ "$UPD" == "2" ]; then |
|
|
|
|
|
|
|
set +e |
|
|
|
|
|
|
|
pihole -up |
|
|
|
exit |
|
|
|
exit |
|
|
|
|
|
|
|
fi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
start |
|
|
|
start |
|
|
|