Skip to content

Commit 8016200

Browse files
Add centos (ct)
1 parent ff252a8 commit 8016200

3 files changed

Lines changed: 72 additions & 0 deletions

File tree

ct/centos.sh

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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!"

ct/headers/centos

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
______ __ ____ _____
2+
/ ____/__ ____ / /_/ __ \/ ___/
3+
/ / / _ \/ __ \/ __/ / / /\__ \
4+
/ /___/ __/ / / / /_/ /_/ /___/ /
5+
\____/\___/_/ /_/\__/\____//____/
6+

install/centos-install.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2026 community-scripts ORG
4+
# Author: MickLesk (CanbiZ)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://www.centos.org/centos-stream/
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
motd_ssh
17+
customize
18+
cleanup_lxc

0 commit comments

Comments
 (0)