alpine adguard

This commit is contained in:
tteckster 2023-03-21 20:29:58 -04:00 committed by GitHub
parent 6a25aade06
commit 45fe9f02cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 11 deletions

View File

@ -54,22 +54,18 @@ function default_settings() {
function update_script() { function update_script() {
header_info header_info
if [[ ! -d /opt/AdGuardHome ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /opt/AdGuardHome ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
normal=$(echo "\033[m") printf "\n${BL}*********************************************${CL}\n"
menu=$(echo "\033[36m") printf "${BL}**${YW} 1)${CL} Update LXC OS \n"
number=$(echo "\033[33m") printf "${BL}**${YW} 2)${CL} Update AdGuardHome\n"
fgred=$(echo "\033[31m") printf "${BL}*********************************************${CL}\n"
printf "\n${menu}*********************************************${normal}\n" printf "Please choose an option from the menu, or ${RD}x${CL} to exit."
printf "${menu}**${number} 1)${normal} Update LXC OS \n"
printf "${menu}**${number} 2)${normal} Update AdGuardHome\n"
printf "${menu}*********************************************${normal}\n"
printf "Please choose an option from the menu, or ${fgred}x${normal} to exit."
read opt read opt
while [ "$opt" != "" ]; do while [ "$opt" != "" ]; do
case $opt in case $opt in
1) 1)
clear clear
echo -e "${fgred}Update LXC OS${normal}" echo -e "${RD}Update LXC OS${CL}"
msg_info "Updating LXC OS" msg_info "Updating LXC OS"
apk update &>/dev/null apk update &>/dev/null
apk upgrade &>/dev/null apk upgrade &>/dev/null
@ -79,7 +75,7 @@ while [ "$opt" != "" ]; do
;; ;;
2) 2)
clear clear
echo -e "${fgred}Update AdGuardHome${normal}" echo -e "${RD}Update AdGuardHome${CL}"
msg_info "Stopping AdguardHome" msg_info "Stopping AdguardHome"
/opt/AdGuardHome/AdGuardHome -s stop &>/dev/null /opt/AdGuardHome/AdGuardHome -s stop &>/dev/null
msg_ok "Stopped AdguardHome" msg_ok "Stopped AdguardHome"