diff --git a/ct/alpine-mh.sh b/ct/alpine-mh.sh new file mode 100644 index 00000000..74a39e0e --- /dev/null +++ b/ct/alpine-mh.sh @@ -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" diff --git a/install/alpine-mh-install.sh b/install/alpine-mh-install.sh new file mode 100644 index 00000000..1c01e016 --- /dev/null +++ b/install/alpine-mh-install.sh @@ -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