diff --git a/ct/amazonlinux.sh b/ct/amazonlinux.sh new file mode 100644 index 000000000..c0ea72624 --- /dev/null +++ b/ct/amazonlinux.sh @@ -0,0 +1,41 @@ +#!/usr/bin/env bash +_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" +source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://aws.amazon.com/linux/ + +APP="Amazon Linux" +var_tags="${var_tags:-os}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-2048}" +var_disk="${var_disk:-8}" +var_os="${var_os:-amazonlinux}" +var_version="${var_version:-2023}" +var_arm64="${var_arm64:-no}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + msg_info "Updating Amazon Linux LXC" + $STD dnf -y upgrade + msg_ok "Updated Amazon Linux LXC" + cleanup_lxc + exit +} + +start +build_container +description + +msg_ok "Completed successfully!" +msg_custom "🚀" "${GN}" "${APP} setup has been successfully initialized!" diff --git a/install/amazonlinux-install.sh b/install/amazonlinux-install.sh new file mode 100644 index 000000000..332885cad --- /dev/null +++ b/install/amazonlinux-install.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://aws.amazon.com/linux/ + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Base Dependencies" +$STD dnf install -y hostname procps-ng +msg_ok "Installed Base Dependencies" + +motd_ssh +customize +cleanup_lxc