Skip to content

Commit cee75dc

Browse files
Add fedora (ct)
1 parent ff252a8 commit cee75dc

3 files changed

Lines changed: 69 additions & 0 deletions

File tree

ct/fedora.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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://fedoraproject.org/
10+
11+
APP="Fedora"
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:-fedora}"
17+
var_version="${var_version:-43}"
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 Fedora LXC"
35+
$STD dnf -y upgrade
36+
msg_ok "Updated Fedora LXC"
37+
exit
38+
}
39+
40+
start
41+
build_container
42+
description
43+
44+
msg_ok "Completed successfully!"
45+
msg_custom "🚀" "${GN}" "${APP} setup has been successfully initialized!"

ct/headers/fedora

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/fedora-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://fedoraproject.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)