Skip to content

Commit a800427

Browse files
Add rockylinux (ct)
1 parent 19bfe87 commit a800427

3 files changed

Lines changed: 70 additions & 0 deletions

File tree

ct/headers/rockylinux

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

ct/rockylinux.sh

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/usr/bin/env bash
2+
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main"
3+
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
4+
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
5+
6+
# Copyright (c) 2021-2026 community-scripts ORG
7+
# Author: MickLesk (CanbiZ)
8+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
9+
# Source: https://rockylinux.org/
10+
11+
APP="Rocky Linux"
12+
var_tags="${var_tags:-os}"
13+
var_cpu="${var_cpu:-1}"
14+
var_ram="${var_ram:-512}"
15+
var_disk="${var_disk:-4}"
16+
var_os="${var_os:-rockylinux}"
17+
var_version="${var_version:-10}"
18+
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
19+
var_unprivileged="${var_unprivileged:-1}"
20+
21+
header_info "$APP"
22+
variables
23+
color
24+
catch_errors
25+
26+
function update_script() {
27+
header_info
28+
check_container_storage
29+
check_container_resources
30+
if [[ ! -d /var ]]; then
31+
msg_error "No ${APP} Installation Found!"
32+
exit
33+
fi
34+
msg_info "Updating Rocky Linux LXC"
35+
$STD dnf -y upgrade
36+
msg_ok "Updated Rocky Linux LXC"
37+
msg_ok "Completed successfully!"
38+
exit
39+
}
40+
41+
start
42+
build_container
43+
description
44+
45+
msg_ok "Completed successfully!\n"
46+
msg_custom "🚀" "${GN}" "${APP} setup has been successfully initialized!"

install/rockylinux-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://rockylinux.org/
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)