|
| 1 | +#!/usr/bin/env bash |
| 2 | +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main" |
| 3 | +# Engine comes from community-scripts/core; this repo only ships the scripts. |
| 4 | +# A local core checkout wins (COMMUNITY_SCRIPTS_CORE_DIR, else a sibling ../core), |
| 5 | +# so a fork or branch of core can be tested without editing this file. |
| 6 | +_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" |
| 7 | +source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") |
| 8 | + |
| 9 | +# Copyright (c) 2021-2026 community-scripts ORG |
| 10 | +# Author: MickLesk (CanbiZ) |
| 11 | +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE |
| 12 | +# Source: https://www.centos.org/centos-stream/ |
| 13 | + |
| 14 | +APP="CentOS" |
| 15 | +var_tags="${var_tags:-os}" |
| 16 | +var_cpu="${var_cpu:-1}" |
| 17 | +var_ram="${var_ram:-512}" |
| 18 | +var_disk="${var_disk:-4}" |
| 19 | +var_os="${var_os:-centos}" |
| 20 | +var_version="${var_version:-10}" |
| 21 | +#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified |
| 22 | +var_unprivileged="${var_unprivileged:-1}" |
| 23 | + |
| 24 | +header_info "$APP" |
| 25 | +variables |
| 26 | +color |
| 27 | +catch_errors |
| 28 | + |
| 29 | +function update_script() { |
| 30 | + header_info |
| 31 | + check_container_storage |
| 32 | + check_container_resources |
| 33 | + if [[ ! -d /var ]]; then |
| 34 | + msg_error "No ${APP} Installation Found!" |
| 35 | + exit |
| 36 | + fi |
| 37 | + msg_info "Updating CentOS LXC" |
| 38 | + $STD dnf -y upgrade |
| 39 | + msg_ok "Updated CentOS LXC" |
| 40 | + exit |
| 41 | +} |
| 42 | + |
| 43 | +start |
| 44 | +build_container |
| 45 | +description |
| 46 | + |
| 47 | +msg_ok "Completed successfully!" |
| 48 | +msg_custom "🚀" "${GN}" "${APP} setup has been successfully initialized!" |
0 commit comments