Skip to content

Commit 68b010e

Browse files
Sync ct/ and install/ from ProxmoxVE
Mirrored automatically. The bootstrap line is rewritten to load the engine from core, which is the only difference to upstream.
1 parent f79518a commit 68b010e

19 files changed

Lines changed: 616 additions & 8 deletions

ct/almalinux.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/Incus/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://almalinux.org/
9+
10+
APP="AlmaLinux"
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:-almalinux}"
16+
var_version="${var_version:-10}"
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 AlmaLinux"
34+
$STD dnf -y upgrade
35+
msg_ok "Updated AlmaLinux"
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/centos.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/Incus/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://www.centos.org/centos-stream/
9+
10+
APP="CentOS"
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:-centos}"
16+
var_version="${var_version:-10}"
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 CentOS LXC"
34+
$STD dnf -y upgrade
35+
msg_ok "Updated CentOS 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/devuan.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/Incus/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://www.devuan.org/
10+
11+
APP="Devuan"
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:-devuan}"
17+
var_version="${var_version:-5.0}"
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 Devuan LXC"
35+
$STD apt update
36+
$STD apt -y upgrade
37+
msg_ok "Updated Devuan LXC"
38+
exit
39+
}
40+
41+
start
42+
build_container
43+
description
44+
45+
msg_ok "Completed successfully!"
46+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"

ct/directus.sh

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/usr/bin/env bash
2+
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/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://directus.com/
9+
10+
APP="Directus"
11+
var_tags="${var_tags:-cms;api;database;headless}"
12+
var_cpu="${var_cpu:-2}"
13+
var_ram="${var_ram:-2048}"
14+
var_disk="${var_disk:-8}"
15+
var_os="${var_os:-debian}"
16+
var_version="${var_version:-13}"
17+
var_arm64="${var_arm64:-yes}"
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+
30+
if [[ ! -f /opt/directus/node_modules/.bin/directus ]]; then
31+
msg_error "No ${APP} Installation Found!"
32+
exit
33+
fi
34+
35+
if check_for_gh_release "directus" "directus/directus"; then
36+
msg_info "Stopping Service"
37+
systemctl stop directus
38+
msg_ok "Stopped Service"
39+
40+
create_backup /opt/directus/.env \
41+
/opt/directus/uploads \
42+
/opt/directus/extensions
43+
44+
msg_info "Updating Directus"
45+
cd /opt/directus
46+
$STD npm install --omit=dev "directus@${CHECK_UPDATE_RELEASE#v}"
47+
cat <<EOF >~/.directus
48+
${CHECK_UPDATE_RELEASE#v}
49+
EOF
50+
restore_backup
51+
msg_ok "Updated Directus"
52+
53+
msg_info "Starting Service"
54+
systemctl start directus
55+
msg_ok "Started Service"
56+
msg_ok "Updated successfully!"
57+
fi
58+
exit
59+
}
60+
61+
start
62+
build_container
63+
description
64+
65+
msg_ok "Completed Successfully!\n"
66+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
67+
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
68+
echo -e "${GATEWAY}${BGN}http://${IP}:8055${CL}"

ct/endurain.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,29 @@ function update_script() {
4040
msg_ok "Stopped Service"
4141

4242
NODE_VERSION="24" setup_nodejs
43-
4443
create_backup /opt/endurain/.env /opt/endurain/frontend/dist/env.js
4544
CLEAN_INSTALL=1 fetch_and_deploy_codeberg_release "endurain" "endurain-project/endurain" "tarball" "latest" "/opt/endurain"
4645

47-
msg_info "Preparing Update"
46+
msg_info "Updating Endurain Frontend"
4847
cd /opt/endurain
4948
rm -rf /opt/endurain/{docs,example.env,screenshot_01.png} /opt/endurain/docker* /opt/endurain/*.yml
50-
msg_ok "Prepared Update"
51-
52-
msg_info "Updating Frontend"
5349
cd /opt/endurain/frontend
5450
$STD npm ci
5551
$STD npm run build
56-
msg_ok "Updated Frontend"
52+
msg_ok "Updated Endurain Frontend"
5753

5854
restore_backup
5955

60-
msg_info "Updating Backend"
56+
if grep -qxF 'FRONTEND_DIR="/opt/endurain/frontend/app/dist"' /opt/endurain/.env; then
57+
sed -i 's|^FRONTEND_DIR="/opt/endurain/frontend/app/dist"$|FRONTEND_DIR="/opt/endurain/frontend/dist"|' /opt/endurain/.env
58+
fi
59+
60+
msg_info "Updating Endurain Backend"
6161
cd /opt/endurain/backend
6262
UV_VERSION=$(grep -Po 'required-version\s*=\s*"\K[^"]+' pyproject.toml 2>/dev/null || echo "0.11.18")
6363
UV_VERSION="$UV_VERSION" setup_uv
6464
$STD uv sync --frozen --no-dev
65-
msg_ok "Backend Updated"
65+
msg_ok "Endurain Backend Updated"
6666

6767
msg_info "Starting Service"
6868
systemctl start endurain

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/Incus/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/gentoo.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/Incus/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://www.gentoo.org/
10+
11+
APP="Gentoo"
12+
var_tags="${var_tags:-os}"
13+
var_cpu="${var_cpu:-2}"
14+
var_ram="${var_ram:-2048}"
15+
var_disk="${var_disk:-10}"
16+
var_os="${var_os:-gentoo}"
17+
var_version="${var_version:-current}"
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 Gentoo LXC"
35+
$STD emerge --sync
36+
$STD emerge --quiet --update --deep @world
37+
msg_ok "Updated Gentoo LXC"
38+
exit
39+
}
40+
41+
start
42+
build_container
43+
description
44+
45+
msg_ok "Completed successfully!"
46+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"

ct/limesurvey.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ function update_script() {
3333
msg_error "No ${APP} Installation Found!"
3434
exit
3535
fi
36+
if [[ ! -L /etc/apache2/mods-enabled/rewrite.load ]]; then
37+
msg_info "Enabling Apache mod_rewrite"
38+
$STD a2enmod rewrite
39+
systemctl restart apache2
40+
msg_ok "Enabled Apache mod_rewrite"
41+
fi
42+
3643
setup_mariadb
3744

3845
msg_warn "Application is updated via Web Interface"

ct/openeuler.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/Incus/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://www.openeuler.org/
10+
11+
APP="openEuler"
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:-openeuler}"
17+
var_version="${var_version:-25.03}"
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 OpenEuler LXC"
35+
$STD dnf -y upgrade
36+
msg_ok "Updated OpenEuler LXC"
37+
msg_ok "Updated successfully!"
38+
exit
39+
}
40+
41+
start
42+
build_container
43+
description
44+
45+
msg_ok "Completed successfully!\n"
46+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"

0 commit comments

Comments
 (0)