mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-28 16:34:21 +01:00
Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5a285c38c | ||
|
|
44edad40f9 | ||
|
|
74f9a25d92 | ||
|
|
fb69ffd8a7 | ||
|
|
63c66abc7b | ||
|
|
7c613232cf |
No files matched your search
+12
-1
@@ -589,11 +589,22 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
## 2026-11-28
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- Garage: use published stable releases for install and update [@mormied22](https://github.com/mormied22) ([#19084](https://github.com/community-scripts/ProxmoxVE/pull/19084))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- Give PVE containers from linuxcontainers.org images the Proxmox templates Base set [@MickLesk](https://github.com/MickLesk) ([core#315](https://github.com/community-scripts/core/pull/315))
|
||||
- PHP: Keep Sury from pulling a second PHP in, and read the version from packages [@MickLesk](https://github.com/MickLesk) ([core#316](https://github.com/community-scripts/core/pull/316))
|
||||
- Give PVE containers from linuxcontainers.org images the Proxmox templates Base set [@MickLesk](https://github.com/MickLesk) ([core#315](https://github.com/community-scripts/core/pull/315))
|
||||
- PHP: keep modules, pools and settings when setup_php changes the PHP version [@MickLesk](https://github.com/MickLesk) ([core#314](https://github.com/community-scripts/core/pull/314))
|
||||
|
||||
### 📚 Documentation
|
||||
|
||||
- docs: add 9.3 support [@cwmoriarty](https://github.com/cwmoriarty) ([#19129](https://github.com/community-scripts/ProxmoxVE/pull/19129))
|
||||
|
||||
## 2026-11-27
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
@@ -76,7 +76,7 @@ guest's own package manager.
|
||||
|
||||
| Component | Details |
|
||||
| --------- | ------- |
|
||||
| **Proxmox VE** | 8.0 – 8.4, or 9.0 – 9.2 |
|
||||
| **Proxmox VE** | 8.0 – 8.4, or 9.0 – 9.3 |
|
||||
| **Access** | Root shell on the Proxmox host |
|
||||
| **Network** | Internet access during installation |
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ This project currently supports the following versions of Proxmox VE (PVE):
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 9.3.x | :white_check_mark: |
|
||||
| 9.2.x | :white_check_mark: |
|
||||
| 9.1.x | :white_check_mark: |
|
||||
| 9.0.x | :white_check_mark: |
|
||||
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
#!/usr/bin/env bash
|
||||
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
|
||||
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/coder/coder
|
||||
|
||||
APP="Coder"
|
||||
var_tags="${var_tags:-development;ide;workspaces}"
|
||||
var_cpu="${var_cpu:-2}"
|
||||
var_ram="${var_ram:-2048}"
|
||||
var_disk="${var_disk:-8}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_arm64="${var_arm64:-yes}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
export var_access_url="${var_access_url:-}"
|
||||
export var_admin_email="${var_admin_email:-}"
|
||||
export var_admin_pass="${var_admin_pass:-}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -f /etc/coder.d/coder.env ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "coder" "coder/coder"; then
|
||||
DPKG_FORCE_CONFOLD=1 fetch_and_deploy_gh_release "coder" "coder/coder" "binary" "latest" "" "coder_*_linux_$(arch_resolve "amd64" "arm64").deb"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
exit
|
||||
}
|
||||
|
||||
start
|
||||
build_container
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
||||
echo -e "${GATEWAY}${BGN}http://${IP}:3000${CL}"
|
||||
echo -e "${INFO}${YW}Admin credentials: /opt/coder_data/.env${CL}"
|
||||
+5
-1
@@ -38,7 +38,11 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if ! php -r 'exit((extension_loaded("intl") && extension_loaded("xml")) ? 0 : 1);' 2>/dev/null; then
|
||||
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="xml,intl" setup_php
|
||||
msg_info "Installing missing PHP extensions"
|
||||
apt_update_safe
|
||||
$STD apt install -y php-xml php-intl
|
||||
systemctl reload apache2
|
||||
msg_ok "Installed missing PHP extensions"
|
||||
fi
|
||||
|
||||
if check_for_gh_release "freshrss" "FreshRSS/FreshRSS"; then
|
||||
|
||||
+44
-59
@@ -33,73 +33,58 @@ color
|
||||
catch_errors
|
||||
|
||||
update_deb_based() {
|
||||
if [[ ! -f /usr/local/bin/garage ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
GITEA_RELEASE=$(curl -fsSL https://api.github.com/repos/deuxfleurs-org/garage/tags | jq -r '.[0].name')
|
||||
if [[ "${GITEA_RELEASE}" != "$(cat ~/.garage 2>/dev/null)" ]] || [[ ! -f ~/.garage ]]; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop garage
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Backing Up Data"
|
||||
cp /usr/local/bin/garage /usr/local/bin/garage.old 2>/dev/null || true
|
||||
cp /etc/garage.toml /etc/garage.toml.bak 2>/dev/null || true
|
||||
msg_ok "Backed Up Data"
|
||||
|
||||
msg_info "Updating Garage"
|
||||
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" -o /usr/local/bin/garage
|
||||
chmod +x /usr/local/bin/garage
|
||||
echo "${GITEA_RELEASE}" >~/.garage
|
||||
msg_ok "Updated Garage"
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start garage
|
||||
msg_ok "Started Service"
|
||||
msg_ok "Updated successfully!"
|
||||
else
|
||||
msg_ok "No update required. Garage is already at ${GITEA_RELEASE}"
|
||||
fi
|
||||
systemctl restart garage
|
||||
}
|
||||
|
||||
update_alpine() {
|
||||
if [[ ! -f /usr/local/bin/garage ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
GITEA_RELEASE=$(curl -fsSL https://api.github.com/repos/deuxfleurs-org/garage/tags | jq -r '.[0].name')
|
||||
if [[ "${GITEA_RELEASE}" != "$(cat ~/.garage 2>/dev/null)" ]] || [[ ! -f ~/.garage ]]; then
|
||||
msg_info "Stopping Service"
|
||||
rc-service garage stop || true
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Backing Up Data"
|
||||
cp /usr/local/bin/garage /usr/local/bin/garage.old 2>/dev/null || true
|
||||
cp /etc/garage.toml /etc/garage.toml.bak 2>/dev/null || true
|
||||
msg_ok "Backed Up Data"
|
||||
|
||||
msg_info "Updating Garage"
|
||||
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" -o /usr/local/bin/garage
|
||||
chmod +x /usr/local/bin/garage
|
||||
echo "${GITEA_RELEASE}" >~/.garage
|
||||
msg_ok "Updated Garage"
|
||||
|
||||
msg_info "Starting Service"
|
||||
rc-service garage start || rc-service garage restart
|
||||
msg_ok "Started Service"
|
||||
msg_ok "Updated successfully!"
|
||||
else
|
||||
msg_ok "No update required. Garage is already at ${GITEA_RELEASE}"
|
||||
fi
|
||||
rc-service garage restart || rc-service garage start
|
||||
}
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -f /usr/local/bin/garage ]]; then
|
||||
msg_error "No Garage installation found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
local garage_release garage_binary
|
||||
garage_release=$(curl -fsSL https://git.deuxfleurs.fr/api/v1/repos/Deuxfleurs/garage/releases/latest |
|
||||
jq -er 'select(.draft == false and .prerelease == false) | .tag_name | strings | select(length > 0)') || {
|
||||
msg_error "Could not determine the latest stable Garage release"
|
||||
exit 1
|
||||
}
|
||||
if [[ -f ~/.garage && "$garage_release" == "$(<~/.garage)" ]]; then
|
||||
msg_ok "No update required. Garage is already at ${garage_release}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
msg_info "Downloading Garage ${garage_release}"
|
||||
garage_binary=$(mktemp /usr/local/bin/garage.XXXXXX)
|
||||
if ! download_file "https://garagehq.deuxfleurs.fr/_releases/${garage_release}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" "$garage_binary"; then
|
||||
rm -f "$garage_binary"
|
||||
exit 1
|
||||
fi
|
||||
msg_ok "Downloaded Garage ${garage_release}"
|
||||
|
||||
msg_info "Backing up Garage"
|
||||
cp /usr/local/bin/garage /usr/local/bin/garage.old 2>/dev/null || true
|
||||
cp /etc/garage.toml /etc/garage.toml.bak 2>/dev/null || true
|
||||
msg_ok "Backed up Garage"
|
||||
|
||||
msg_info "Updating Garage"
|
||||
chmod 755 "$garage_binary"
|
||||
mv -f "$garage_binary" /usr/local/bin/garage
|
||||
msg_ok "Updated Garage"
|
||||
|
||||
msg_info "Restarting Garage"
|
||||
run_os_update
|
||||
msg_ok "Restarted Garage"
|
||||
printf '%s\n' "$garage_release" >~/.garage
|
||||
msg_ok "Updated Garage successfully"
|
||||
exit 0
|
||||
}
|
||||
|
||||
start
|
||||
@@ -108,5 +93,5 @@ description
|
||||
|
||||
msg_ok "Completed successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
||||
echo -e "${GATEWAY}${BGN}http://${IP}${CL}"
|
||||
echo -e "${INFO}${YW}Use this Garage S3 API endpoint${CL}"
|
||||
echo -e "${GATEWAY}${BGN}http://${IP}:3900${CL}"
|
||||
@@ -0,0 +1,68 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/coder/coder
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
setup_postgresql
|
||||
PG_DB_NAME="coder" PG_DB_USER="coder" PG_DB_CREDS_FILE="/dev/null" setup_postgresql_db
|
||||
|
||||
fetch_and_deploy_gh_release "coder" "coder/coder" "binary" "latest" "" "coder_*_linux_$(arch_resolve "amd64" "arm64").deb"
|
||||
|
||||
var_access_url="${var_access_url:-http://${LOCAL_IP}:3000}"
|
||||
if [[ ! "$var_access_url" =~ ^https?:// ]]; then
|
||||
msg_warn "Access URL '${var_access_url}' has no scheme, using http://${var_access_url}"
|
||||
var_access_url="http://${var_access_url}"
|
||||
fi
|
||||
|
||||
msg_info "Configuring Coder"
|
||||
cat <<EOF >/etc/coder.d/coder.env
|
||||
CODER_HTTP_ADDRESS=0.0.0.0:3000
|
||||
CODER_ACCESS_URL=${var_access_url}
|
||||
CODER_PG_CONNECTION_URL=postgres://coder:${PG_DB_PASS}@127.0.0.1:5432/coder?sslmode=disable
|
||||
EOF
|
||||
chmod 640 /etc/coder.d/coder.env
|
||||
chown root:coder /etc/coder.d/coder.env
|
||||
mkdir -p /opt/coder_data
|
||||
cat <<EOF >/opt/coder_data/.env
|
||||
CODER_ADMIN_USERNAME=admin
|
||||
CODER_ADMIN_EMAIL=${var_admin_email:-admin@coder.local}
|
||||
CODER_ADMIN_PASSWORD=${var_admin_pass:-$(random_password)}
|
||||
EOF
|
||||
chmod 600 /opt/coder_data/.env
|
||||
# The first start runs all database migrations before it reports ready, longer than 90s on slow disks
|
||||
mkdir -p /etc/systemd/system/coder.service.d
|
||||
cat <<EOF >/etc/systemd/system/coder.service.d/override.conf
|
||||
[Service]
|
||||
TimeoutStartSec=30min
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
systemctl enable -q --now coder
|
||||
msg_ok "Configured Coder"
|
||||
|
||||
msg_info "Creating Coder Admin"
|
||||
source /opt/coder_data/.env
|
||||
for _ in {1..60}; do
|
||||
curl -fsS http://127.0.0.1:3000/healthz >/dev/null 2>&1 && break
|
||||
sleep 2
|
||||
done
|
||||
$STD coder login http://127.0.0.1:3000 \
|
||||
--first-user-username "$CODER_ADMIN_USERNAME" \
|
||||
--first-user-email "$CODER_ADMIN_EMAIL" \
|
||||
--first-user-password "$CODER_ADMIN_PASSWORD" \
|
||||
--first-user-full-name "Admin" \
|
||||
--first-user-trial=false
|
||||
msg_ok "Created Coder Admin"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -15,8 +15,7 @@ update_os
|
||||
|
||||
setup_deb_based() {
|
||||
msg_info "Setup Garage"
|
||||
GITEA_RELEASE=$(curl -s https://api.github.com/repos/deuxfleurs-org/garage/tags | jq -r '.[0].name')
|
||||
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" -o /usr/local/bin/garage
|
||||
download_file "https://garagehq.deuxfleurs.fr/_releases/${garage_release}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" /usr/local/bin/garage
|
||||
chmod +x /usr/local/bin/garage
|
||||
mkdir -p /var/lib/garage/{data,meta,snapshots}
|
||||
mkdir -p /etc/garage
|
||||
@@ -29,7 +28,7 @@ RPC Secret: $RPC_SECRET
|
||||
Admin Token: $ADMIN_TOKEN
|
||||
Metrics Token: $METRICS_TOKEN
|
||||
EOF
|
||||
echo $GITEA_RELEASE >>~/.garage
|
||||
printf '%s\n' "$garage_release" >~/.garage
|
||||
cat <<EOF >/etc/garage.toml
|
||||
metadata_dir = "/var/lib/garage/meta"
|
||||
data_dir = "/var/lib/garage/data"
|
||||
@@ -91,8 +90,7 @@ setup_alpine() {
|
||||
$STD apk add --no-cache openssl
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
GITEA_RELEASE=$(curl -s https://api.github.com/repos/deuxfleurs-org/garage/tags | jq -r '.[0].name')
|
||||
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" -o /usr/local/bin/garage
|
||||
download_file "https://garagehq.deuxfleurs.fr/_releases/${garage_release}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" /usr/local/bin/garage
|
||||
chmod +x /usr/local/bin/garage
|
||||
mkdir -p /var/lib/garage/{data,meta,snapshots}
|
||||
mkdir -p /etc/garage
|
||||
@@ -105,7 +103,7 @@ RPC Secret: $RPC_SECRET
|
||||
Admin Token: $ADMIN_TOKEN
|
||||
Metrics Token: $METRICS_TOKEN
|
||||
EOF
|
||||
echo $GITEA_RELEASE >>~/.garage
|
||||
printf '%s\n' "$garage_release" >~/.garage
|
||||
cat <<EOF >/etc/garage.toml
|
||||
metadata_dir = "/var/lib/garage/meta"
|
||||
data_dir = "/var/lib/garage/data"
|
||||
@@ -155,6 +153,11 @@ EOF
|
||||
msg_ok "Service active"
|
||||
}
|
||||
|
||||
garage_release=$(curl -fsSL https://git.deuxfleurs.fr/api/v1/repos/Deuxfleurs/garage/releases/latest |
|
||||
jq -er 'select(.draft == false and .prerelease == false) | .tag_name | strings | select(length > 0)') || {
|
||||
msg_error "Could not determine the latest stable Garage release"
|
||||
exit 1
|
||||
}
|
||||
run_os_setup
|
||||
|
||||
motd_ssh
|
||||
|
||||
Reference in new issue
Block a user