This commit is contained in:
2025-10-14 19:04:37 +02:00
parent 24cd430cf4
commit 2408c38b6f
2 changed files with 70 additions and 0 deletions

49
ct/alpine-mh.sh Normal file
View File

@@ -0,0 +1,49 @@
#!/usr/bin/env bash
myuser=mhop
mybranch=mhop
#source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
source <(curl -fsSL https://raw.githubusercontent.com/$myuser/ProxmoxVE/$mybranch/misc/build.func)
# Copyright (c) 2021-2025 tteck
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://alpinelinux.org/
APP="Alpine"
var_tags="${var_tags:-os;alpine}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_disk="${var_disk:-1}"
var_os="${var_os:-alpine}"
var_version="${var_version:-3.22}"
var_unprivileged="${var_unprivileged:-1}"
var_net="${var_net:-static}"
var_gateway="${var_gateway:-192.168.178.1}"
var_ns="${var_ns:-1.1.1.1}"
var_ssh="${var_ssh:-yes}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
UPD=$(
whiptail --backtitle "Proxmox VE Helper Scripts" --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 1 \
"1" "Check for Alpine Updates" ON \
3>&1 1>&2 2>&3
)
header_info
if [ "$UPD" == "1" ]; then
$STD apk -U upgrade
exit
fi
}
start
build_container
description
msg_ok "Completed Successfully!\n"

View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2025 tteck
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://alpinelinux.org/
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 sudo
msg_ok "Installed Dependencies"
motd_ssh
customize