From 9ca7ef55ddfa076b9ff57515b8624dd299cc86ea Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 17 May 2023 15:01:30 -0400 Subject: [PATCH] Remove Alpine applications that are not installed through the Alpine package manager. --- ct/alpine-adguard.sh | 90 ------------------------------- ct/alpine-whoogle.sh | 88 ------------------------------ install/alpine-adguard-install.sh | 36 ------------- install/alpine-whoogle-install.sh | 52 ------------------ 4 files changed, 266 deletions(-) delete mode 100644 ct/alpine-adguard.sh delete mode 100644 ct/alpine-whoogle.sh delete mode 100644 install/alpine-adguard-install.sh delete mode 100644 install/alpine-whoogle-install.sh diff --git a/ct/alpine-adguard.sh b/ct/alpine-adguard.sh deleted file mode 100644 index 929708a5..00000000 --- a/ct/alpine-adguard.sh +++ /dev/null @@ -1,90 +0,0 @@ -#!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) -# Copyright (c) 2021-2023 tteck -# Author: tteck (tteckster) -# License: MIT -# https://github.com/tteck/Proxmox/raw/main/LICENSE - -function header_info { - clear - cat <<"EOF" - ___ __ __ - / | ____/ /___ ___ ______ __________/ / - / /| |/ __ / __ / / / / __ / ___/ __ / - / ___ / /_/ / /_/ / /_/ / /_/ / / / /_/ / -/_/ |_\__,_/\__, /\__,_/\__,_/_/ \__,_/ - /____/ Alpine - -EOF -} -header_info -echo -e "Loading..." -APP="Alpine-AdGuard" -var_disk="0.3" -var_cpu="1" -var_ram="256" -var_os="alpine" -var_version="3.17" -variables -color -catch_errors - -function default_settings() { - CT_TYPE="1" - PW="" - CT_ID=$NEXTID - HN=$NSAPP - DISK_SIZE="$var_disk" - CORE_COUNT="$var_cpu" - RAM_SIZE="$var_ram" - BRG="vmbr0" - NET="dhcp" - GATE="" - DISABLEIP6="no" - MTU="" - SD="" - NS="" - MAC="" - VLAN="" - SSH="no" - VERB="no" - echo_default -} - -function update_script() { - if ! apk -e info newt >/dev/null 2>&1; then - apk add -q newt - fi - while true; do - CHOICE=$( - whiptail --title "SUPPORT" --menu "Select option" 11 58 2 \ - "1" "Update LXC OS" \ - "2" "Manually Update AdGuardHome" 3>&2 2>&1 1>&3 - ) - exit_status=$? - if [ $exit_status == 1 ]; then - clear - exit-script - fi - header_info - case $CHOICE in - 1) - apk update && apk upgrade - exit - ;; - 2) - header_info - echo "In the process of creating a method to update" - exit - ;; - esac - done -} - -start -build_container -description - -msg_ok "Completed Successfully!\n" -echo -e "${APP} should be reachable by going to the following URL. - ${BL}http://${IP}:3000${CL} \n" diff --git a/ct/alpine-whoogle.sh b/ct/alpine-whoogle.sh deleted file mode 100644 index 02dec1f1..00000000 --- a/ct/alpine-whoogle.sh +++ /dev/null @@ -1,88 +0,0 @@ -#!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) -# Copyright (c) 2021-2023 tteck -# Author: tteck (tteckster) -# License: MIT -# https://github.com/tteck/Proxmox/raw/main/LICENSE - -function header_info { - clear - cat <<"EOF" - _ ____ __ -| | / / /_ ____ ____ ____ _/ /__ -| | /| / / __ \/ __ \/ __ \/ __ `/ / _ \ -| |/ |/ / / / / /_/ / /_/ / /_/ / / __/ -|__/|__/_/ /_/\____/\____/\__, /_/\___/ - Alpine /____/ - -EOF -} -header_info -echo -e "Loading..." -APP="Alpine-Whoogle" -var_disk="0.3" -var_cpu="1" -var_ram="256" -var_os="alpine" -var_version="3.17" -variables -color -catch_errors - -function default_settings() { - CT_TYPE="1" - PW="" - CT_ID=$NEXTID - HN=$NSAPP - DISK_SIZE="$var_disk" - CORE_COUNT="$var_cpu" - RAM_SIZE="$var_ram" - BRG="vmbr0" - NET="dhcp" - GATE="" - DISABLEIP6="no" - MTU="" - SD="" - NS="" - MAC="" - VLAN="" - SSH="no" - VERB="no" - echo_default -} - -function update_script() { - if [[ ! -f /usr/bin/whoogle-search ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - while true; do - CHOICE=$( - whiptail --title "SUPPORT" --menu "Select option" 11 58 1 \ - "1" "Check for Whoogle Updates" 3>&2 2>&1 1>&3 - ) - exit_status=$? - if [ $exit_status == 1 ]; then - clear - exit-script - fi - header_info - case $CHOICE in - 1) - msg_info "Updating Whoogle" - pip3 install whoogle-search --upgrade &>/dev/null - rc-service -q whoogle restart - msg_ok "Updated Successfully!" - exit - ;; - esac - done -} - -start -build_container -description - -msg_ok "Completed Successfully!\n" -echo -e "${APP} should be reachable by going to the following URL. - ${BL}http://${IP}:5000${CL} \n" diff --git a/install/alpine-adguard-install.sh b/install/alpine-adguard-install.sh deleted file mode 100644 index b43c55ce..00000000 --- a/install/alpine-adguard-install.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2023 tteck -# Author: tteck (tteckster) -# License: MIT -# https://github.com/tteck/Proxmox/raw/main/LICENSE -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" - -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -msg_info "Installing Dependencies" -$STD apk add newt -$STD apk add curl -$STD apk add nano -$STD apk add mc -$STD apk add openssh -msg_ok "Installed Dependencies" - -msg_info "Installing Alpine-AdGuard" -VER=$(curl --silent -qI https://github.com/AdguardTeam/AdGuardHome/releases/latest | awk -F '/' '/^location/ {print substr($NF, 1, length($NF)-1)}'); -$STD wget -q "https://github.com/AdguardTeam/AdGuardHome/releases/download/$VER/AdGuardHome_linux_amd64.tar.gz" -$STD tar -xvf AdGuardHome_linux_amd64.tar.gz >/dev/null 2>&1 -$STD mv AdGuardHome /opt -$STD rm AdGuardHome_linux_amd64.tar.gz -$STD chmod +x /opt/AdGuardHome/AdGuardHome -$STD /opt/AdGuardHome/AdGuardHome -s install -$STD /opt/AdGuardHome/AdGuardHome -s start -msg_ok "Installed Alpine-AdGuard" - -motd_ssh -customize diff --git a/install/alpine-whoogle-install.sh b/install/alpine-whoogle-install.sh deleted file mode 100644 index d6cfcc69..00000000 --- a/install/alpine-whoogle-install.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2023 tteck -# Author: tteck (tteckster) -# License: MIT -# https://github.com/tteck/Proxmox/raw/main/LICENSE -source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" - -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -msg_info "Installing Dependencies" -$STD apk add newt -$STD apk add curl -$STD apk add openssh -$STD apk add nano -$STD apk add mc -msg_ok "Installed Dependencies" - -msg_info "Installing pip3 Package Manager" -$STD apk add py3-pip -msg_ok "Installed pip3 Package Manager" - -msg_info "Installing Alpine-Whoogle" -$STD pip3 install brotli -$STD pip3 install whoogle-search - -echo "#!/sbin/openrc-run -description=\"Whoogle-Search\" -pidfile=\"/run/whoogle.pid\" - -start() { - /usr/bin/whoogle-search --host 0.0.0.0 & - echo \$! > \$pidfile -} - -stop() { - kill \$(cat \$pidfile) - rm \$pidfile -}" >/etc/init.d/whoogle - -chmod 755 /etc/init.d/whoogle -rc-service -q whoogle start -rc-update add -q whoogle default -msg_ok "Installed Alpine-Whoogle" - -motd_ssh -customize