Skip to content

Commit 626d0ba

Browse files
push-app-to-main[bot]asylumexpMickLesk
authored
Fedora (#16770)
* Add fedora (ct) * Update ct/fedora.sh * Uncomment var_arm64 variable in fedora.sh --------- Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: Sam Heinz <sam@samheinz.com> Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
1 parent e483925 commit 626d0ba

3 files changed

Lines changed: 68 additions & 0 deletions

File tree

ct/fedora.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
# Copyright (c) 2021-2026 community-scripts ORG
6+
# Author: MickLesk (CanbiZ)
7+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
8+
# Source: https://fedoraproject.org/
9+
10+
APP="Fedora"
11+
var_tags="${var_tags:-os}"
12+
var_cpu="${var_cpu:-1}"
13+
var_ram="${var_ram:-512}"
14+
var_disk="${var_disk:-4}"
15+
var_os="${var_os:-fedora}"
16+
var_version="${var_version:-43}"
17+
var_arm64="${var_arm64:-no}"
18+
var_unprivileged="${var_unprivileged:-1}"
19+
20+
header_info "$APP"
21+
variables
22+
color
23+
catch_errors
24+
25+
function update_script() {
26+
header_info
27+
check_container_storage
28+
check_container_resources
29+
if [[ ! -d /var ]]; then
30+
msg_error "No ${APP} Installation Found!"
31+
exit
32+
fi
33+
msg_info "Updating Fedora LXC"
34+
$STD dnf -y upgrade
35+
msg_ok "Updated Fedora LXC"
36+
exit
37+
}
38+
39+
start
40+
build_container
41+
description
42+
43+
msg_ok "Completed successfully!"
44+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"

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)