remove adguard
This commit is contained in:
parent
7c33c844ec
commit
ef1e7ecf88
@ -1,46 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||
# Copyright (c) 2021-2025 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
||||
# Source: https://adguardhome.com/
|
||||
|
||||
APP="Alpine-AdGuard"
|
||||
var_tags="${var_tags:-alpine;networking}"
|
||||
var_cpu="${var_cpu:-1}"
|
||||
var_ram="${var_ram:-256}"
|
||||
var_disk="${var_disk:-1}"
|
||||
var_os="${var_os:-alpine}"
|
||||
var_version="${var_version:-3.21}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
msg_info "Updating Alpine Packages"
|
||||
$STD apk update
|
||||
$STD apk upgrade
|
||||
msg_ok "Updated Alpine Packages"
|
||||
|
||||
msg_info "Updating AdGuard Home"
|
||||
$STD /opt/adguardhome/AdGuardHome --update
|
||||
msg_ok "Updated AdGuard Home"
|
||||
|
||||
msg_info "Restarting AdGuard Home"
|
||||
$STD rc-service adguardhome restart
|
||||
msg_ok "Restarted AdGuard Home"
|
||||
|
||||
exit 0
|
||||
}
|
||||
|
||||
start
|
||||
build_container
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
|
@ -1,47 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2025 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
||||
# Source: https://adguardhome.com/
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
msg_info "Downloading AdGuard Home"
|
||||
$STD curl -fsSL -o /tmp/AdGuardHome_linux_amd64.tar.gz \
|
||||
"https://github.com/AdguardTeam/AdGuardHome/releases/latest/download/AdGuardHome_linux_amd64.tar.gz"
|
||||
msg_ok "Downloaded AdGuard Home"
|
||||
|
||||
msg_info "Installing AdGuard Home"
|
||||
$STD tar -xzf /tmp/AdGuardHome_linux_amd64.tar.gz -C /opt
|
||||
$STD rm /tmp/AdGuardHome_linux_amd64.tar.gz
|
||||
msg_ok "Installed AdGuard Home"
|
||||
|
||||
msg_info "Creating AdGuard Home Service"
|
||||
cat <<EOF >/etc/init.d/adguardhome
|
||||
#!/sbin/openrc-run
|
||||
name="AdGuardHome"
|
||||
description="AdGuard Home Service"
|
||||
command="/opt/AdGuardHome/AdGuardHome"
|
||||
command_background="yes"
|
||||
pidfile="/run/adguardhome.pid"
|
||||
EOF
|
||||
$STD chmod +x /etc/init.d/adguardhome
|
||||
msg_ok "Created AdGuard Home Service"
|
||||
|
||||
msg_info "Enabling AdGuard Home Service"
|
||||
$STD rc-update add adguardhome default
|
||||
msg_ok "Enabled AdGuard Home Service"
|
||||
|
||||
msg_info "Starting AdGuard Home"
|
||||
$STD rc-service adguardhome start
|
||||
msg_ok "Started AdGuard Home"
|
||||
|
||||
motd_ssh
|
||||
customize
|
@ -25,7 +25,7 @@ install_node_and_modules() {
|
||||
|
||||
mkdir -p /etc/apt/keyrings
|
||||
|
||||
if ! curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | \
|
||||
if ! curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key |
|
||||
gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg; then
|
||||
msg_error "Failed to download or import NodeSource GPG key"
|
||||
exit 1
|
||||
@ -92,7 +92,6 @@ install_node_and_modules() {
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
function install_postgresql() {
|
||||
local PG_VERSION="${PG_VERSION:-15}"
|
||||
local CURRENT_PG_VERSION=""
|
||||
@ -120,7 +119,7 @@ function install_postgresql() {
|
||||
rm -f /etc/apt/sources.list.d/pgdg.list /etc/apt/trusted.gpg.d/postgresql.gpg
|
||||
|
||||
msg_info "Setting up PostgreSQL Repository"
|
||||
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
|
||||
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc |
|
||||
gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
|
||||
|
||||
echo "deb https://apt.postgresql.org/pub/repos/apt ${DISTRO}-pgdg main" \
|
||||
@ -227,8 +226,8 @@ fetch_and_deploy_gh_release() {
|
||||
# ensure that jq is installed
|
||||
if ! command -v jq &>/dev/null; then
|
||||
$STD msg_info "Installing jq..."
|
||||
apt-get update -qq &>/dev/null
|
||||
apt-get install -y jq &>/dev/null || {
|
||||
$STD apt-get update -qq &>/dev/null
|
||||
$STD apt-get install -y jq &>/dev/null || {
|
||||
msg_error "Failed to install jq"
|
||||
return 1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user