2023-03-23 00:48:20 +00:00
|
|
|
#!/usr/bin/env bash
|
2024-11-02 07:48:05 +00:00
|
|
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
2025-01-01 12:37:29 +00:00
|
|
|
# Copyright (c) 2021-2025 tteck
|
2023-03-23 00:48:20 +00:00
|
|
|
# Author: tteck (tteckster)
|
2024-12-16 11:42:51 +00:00
|
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
2023-03-23 00:48:20 +00:00
|
|
|
|
2024-12-16 11:42:51 +00:00
|
|
|
# App Default Values
|
2023-03-23 00:48:20 +00:00
|
|
|
APP="Alpine-Docker"
|
2024-12-16 12:31:48 +00:00
|
|
|
var_tags="docker;alpine"
|
2023-03-23 00:48:20 +00:00
|
|
|
var_cpu="1"
|
|
|
|
var_ram="1024"
|
2024-12-16 11:42:51 +00:00
|
|
|
var_disk="2"
|
2023-03-23 00:48:20 +00:00
|
|
|
var_os="alpine"
|
2024-12-16 11:42:51 +00:00
|
|
|
var_version="3.20"
|
|
|
|
var_unprivileged="1"
|
|
|
|
|
|
|
|
# App Output & Base Settings
|
|
|
|
header_info "$APP"
|
|
|
|
base_settings
|
|
|
|
|
|
|
|
# Core
|
2023-03-23 00:48:20 +00:00
|
|
|
variables
|
|
|
|
color
|
|
|
|
catch_errors
|
|
|
|
|
2023-03-23 14:19:26 +00:00
|
|
|
function update_script() {
|
2023-03-24 17:23:58 +00:00
|
|
|
if ! apk -e info newt >/dev/null 2>&1; then
|
2023-03-24 17:28:19 +00:00
|
|
|
apk add -q newt
|
2023-03-24 17:23:58 +00:00
|
|
|
fi
|
2023-03-23 14:35:48 +00:00
|
|
|
while true; do
|
|
|
|
CHOICE=$(
|
2023-09-09 09:13:17 +00:00
|
|
|
whiptail --backtitle "Proxmox VE Helper Scripts" --title "SUPPORT" --menu "Select option" 11 58 1 \
|
2023-03-23 14:35:48 +00:00
|
|
|
"1" "Check for Docker Updates" 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
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
2023-03-23 14:19:26 +00:00
|
|
|
}
|
2023-03-23 00:48:20 +00:00
|
|
|
|
|
|
|
start
|
|
|
|
build_container
|
|
|
|
description
|
|
|
|
|
|
|
|
msg_ok "Completed Successfully!\n"
|