mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-11 23:26:12 +02:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 438ddc338d | |||
| 5c10a942a1 | |||
| dbbdc93a0b |
@@ -521,6 +521,14 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
## 2026-08-11
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- karakeep: pin Node.js to 22 LTS, avoid Node 24.19 better-sqlite3 crash [@MickLesk](https://github.com/MickLesk) ([#16396](https://github.com/community-scripts/ProxmoxVE/pull/16396))
|
||||||
|
|
||||||
## 2026-08-10
|
## 2026-08-10
|
||||||
|
|
||||||
### 🆕 New Scripts
|
### 🆕 New Scripts
|
||||||
|
|||||||
+14
-1
@@ -59,6 +59,8 @@ function uninstall() {
|
|||||||
# UPDATE
|
# UPDATE
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
function update() {
|
function update() {
|
||||||
|
chown -R 65532:65532 /etc/arcane/projects /etc/arcane/builds 2>/dev/null || true
|
||||||
|
|
||||||
msg_info "Pulling latest ${APP} image"
|
msg_info "Pulling latest ${APP} image"
|
||||||
cd "$INSTALL_PATH"
|
cd "$INSTALL_PATH"
|
||||||
$STD docker compose pull
|
$STD docker compose pull
|
||||||
@@ -83,15 +85,25 @@ function install() {
|
|||||||
msg_ok "Created ${INSTALL_PATH}"
|
msg_ok "Created ${INSTALL_PATH}"
|
||||||
|
|
||||||
# Generate secrets and config values
|
# Generate secrets and config values
|
||||||
local ENCRYPTION_KEY JWT_SECRET PROJ_DIR
|
local ENCRYPTION_KEY JWT_SECRET PROJ_DIR BUILDS_DIR
|
||||||
ENCRYPTION_KEY=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | head -c32)
|
ENCRYPTION_KEY=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | head -c32)
|
||||||
JWT_SECRET=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | head -c32)
|
JWT_SECRET=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | head -c32)
|
||||||
PROJ_DIR="/etc/arcane/projects"
|
PROJ_DIR="/etc/arcane/projects"
|
||||||
|
BUILDS_DIR="/etc/arcane/builds"
|
||||||
|
|
||||||
|
# Arcane drops root and runs as UID/GID 65532 by default (Dockerfile default,
|
||||||
|
# see backend/pkg/libarcane/startup/runtime_identity.go), so bind-mounted
|
||||||
|
# host directories must be owned by that UID or the container can't write to them.
|
||||||
msg_info "Creating stacks directory"
|
msg_info "Creating stacks directory"
|
||||||
mkdir -p "$PROJ_DIR"
|
mkdir -p "$PROJ_DIR"
|
||||||
|
chown -R 65532:65532 "$PROJ_DIR"
|
||||||
msg_ok "Created ${PROJ_DIR}"
|
msg_ok "Created ${PROJ_DIR}"
|
||||||
|
|
||||||
|
msg_info "Creating builds directory"
|
||||||
|
mkdir -p "$BUILDS_DIR"
|
||||||
|
chown -R 65532:65532 "$BUILDS_DIR"
|
||||||
|
msg_ok "Created ${BUILDS_DIR}"
|
||||||
|
|
||||||
msg_info "Downloading Docker Compose file"
|
msg_info "Downloading Docker Compose file"
|
||||||
curl -fsSL "https://raw.githubusercontent.com/getarcaneapp/arcane/refs/heads/main/docker/examples/compose.basic.yaml" -o "$COMPOSE_FILE"
|
curl -fsSL "https://raw.githubusercontent.com/getarcaneapp/arcane/refs/heads/main/docker/examples/compose.basic.yaml" -o "$COMPOSE_FILE"
|
||||||
msg_ok "Downloaded Docker Compose file"
|
msg_ok "Downloaded Docker Compose file"
|
||||||
@@ -103,6 +115,7 @@ function install() {
|
|||||||
|
|
||||||
msg_info "Configuring compose and env files"
|
msg_info "Configuring compose and env files"
|
||||||
sed -i '/^[[:space:]]*#/!s|/host/path/to/projects|'"$PROJ_DIR"'|g' "$COMPOSE_FILE"
|
sed -i '/^[[:space:]]*#/!s|/host/path/to/projects|'"$PROJ_DIR"'|g' "$COMPOSE_FILE"
|
||||||
|
sed -i '/^[[:space:]]*#/!s|/host/path/to/builds|'"$BUILDS_DIR"'|g' "$COMPOSE_FILE"
|
||||||
sed -i '/^[[:space:]]*#/!s|ENCRYPTION_KEY=.*|ENCRYPTION_KEY='"$ENCRYPTION_KEY"'|g' "$COMPOSE_FILE"
|
sed -i '/^[[:space:]]*#/!s|ENCRYPTION_KEY=.*|ENCRYPTION_KEY='"$ENCRYPTION_KEY"'|g' "$COMPOSE_FILE"
|
||||||
sed -i '/^[[:space:]]*#/!s|JWT_SECRET=.*|JWT_SECRET='"$JWT_SECRET"'|g' "$COMPOSE_FILE"
|
sed -i '/^[[:space:]]*#/!s|JWT_SECRET=.*|JWT_SECRET='"$JWT_SECRET"'|g' "$COMPOSE_FILE"
|
||||||
sed -i '/^[[:space:]]*#/!s|APP_URL=.*|APP_URL=http://localhost:'"$DEFAULT_PORT"'|g' "$ENV_FILE"
|
sed -i '/^[[:space:]]*#/!s|APP_URL=.*|APP_URL=http://localhost:'"$DEFAULT_PORT"'|g' "$ENV_FILE"
|
||||||
|
|||||||
Reference in New Issue
Block a user