mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Remove Alpine applications that are not installed through the Alpine package manager.
This commit is contained in:
parent
f480487b12
commit
9ca7ef55dd
4 changed files with 0 additions and 266 deletions
|
@ -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
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue