mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-09 21:02:49 +00:00
Compare commits
1 Commits
main
...
update_ver
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db7c4b030c |
@@ -14,14 +14,8 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
- core: improve log cleaning [@MickLesk](https://github.com/MickLesk) ([#8999](https://github.com/community-scripts/ProxmoxVE/pull/8999))
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
- Add wkhtmltopdf to Odoo installation dependencies [@akileos](https://github.com/akileos) ([#9010](https://github.com/community-scripts/ProxmoxVE/pull/9010))
|
|
||||||
- fix(jotty): Comments removed from variables, as they are interpreted. [@schneider-de-com](https://github.com/schneider-de-com) ([#9002](https://github.com/community-scripts/ProxmoxVE/pull/9002))
|
|
||||||
- fix(n8n): Add python3-setuptools dependency for Debian 13 [@chrikodo](https://github.com/chrikodo) ([#9007](https://github.com/community-scripts/ProxmoxVE/pull/9007))
|
|
||||||
- Paperless-ngx: hotfix config path [@vhsdream](https://github.com/vhsdream) ([#9003](https://github.com/community-scripts/ProxmoxVE/pull/9003))
|
|
||||||
- Paperless-NGX: Move config backup outside of app folder [@vhsdream](https://github.com/vhsdream) ([#8996](https://github.com/community-scripts/ProxmoxVE/pull/8996))
|
- Paperless-NGX: Move config backup outside of app folder [@vhsdream](https://github.com/vhsdream) ([#8996](https://github.com/community-scripts/ProxmoxVE/pull/8996))
|
||||||
|
|
||||||
## 2025-11-08
|
## 2025-11-08
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating Paperless-ngx"
|
msg_info "Updating Paperless-ngx"
|
||||||
cp -r /opt/paperless_backup/* /opt/paperless/
|
cp -r /opt/paperless_backup/* /opt/paperless/
|
||||||
CONSUME_DIR="$(sed -n '/^PAPERLESS_CONSUMPTION/s/[^=]=*//p' /opt/paperless/paperless.conf)"
|
CONSUME_DIR="$(sed -n '/^PAPERLESS_CONSUMPTION/s/[^=]=*//p' /opt/paperless.conf)"
|
||||||
mkdir -p "${CONSUME_DIR:-/opt/paperless/consume}"
|
mkdir -p "${CONSUME_DIR:-/opt/paperless/consume}"
|
||||||
cd /opt/paperless
|
cd /opt/paperless
|
||||||
$STD uv sync --all-extras
|
$STD uv sync --all-extras
|
||||||
@@ -128,7 +128,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating Paperless-ngx"
|
msg_info "Updating Paperless-ngx"
|
||||||
cp -r /opt/paperless_backup/* /opt/paperless/
|
cp -r /opt/paperless_backup/* /opt/paperless/
|
||||||
CONSUME_DIR="$(sed -n '/^PAPERLESS_CONSUMPTION/s/[^=]=*//p' /opt/paperless/paperless.conf)"
|
CONSUME_DIR="$(sed -n '/^PAPERLESS_CONSUMPTION/s/[^=]=*//p' /opt/paperless.conf)"
|
||||||
mkdir -p "${CONSUME_DIR:-/opt/paperless/consume}"
|
mkdir -p "${CONSUME_DIR:-/opt/paperless/consume}"
|
||||||
cd /opt/paperless
|
cd /opt/paperless
|
||||||
$STD uv sync --all-extras
|
$STD uv sync --all-extras
|
||||||
|
|||||||
@@ -40,9 +40,9 @@ NODE_ENV=production
|
|||||||
# OIDC_ISSUER=<your-oidc-issuer-url>
|
# OIDC_ISSUER=<your-oidc-issuer-url>
|
||||||
# OIDC_CLIENT_ID=<oidc-client-id>
|
# OIDC_CLIENT_ID=<oidc-client-id>
|
||||||
# APP_URL=<https://app.domain.tld>
|
# APP_URL=<https://app.domain.tld>
|
||||||
# SSO_FALLBACK_LOCAL=yes
|
# SSO_FALLBACK_LOCAL=yes # Allow both SSO and normal login
|
||||||
# OIDC_CLIENT_SECRET=your_client_secret
|
# OIDC_CLIENT_SECRET=your_client_secret # Enable confidential client mode with client authentication
|
||||||
# OIDC_ADMIN_GROUPS=admins
|
# OIDC_ADMIN_GROUPS=admins # Map provider groups to admin role
|
||||||
EOF
|
EOF
|
||||||
msg_ok "Installed ${APPLICATION}"
|
msg_ok "Installed ${APPLICATION}"
|
||||||
|
|
||||||
|
|||||||
@@ -16,9 +16,7 @@ update_os
|
|||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt install -y \
|
$STD apt install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
build-essential \
|
build-essential
|
||||||
python3 \
|
|
||||||
python3-setuptools
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt install -y python3-lxml wkhtmltopdf
|
$STD apt install -y python3-lxml
|
||||||
curl -fsSL "http://archive.ubuntu.com/ubuntu/pool/universe/l/lxml-html-clean/python3-lxml-html-clean_0.1.1-1_all.deb" -o /opt/python3-lxml-html-clean.deb
|
curl -fsSL "http://archive.ubuntu.com/ubuntu/pool/universe/l/lxml-html-clean/python3-lxml-html-clean_0.1.1-1_all.deb" -o /opt/python3-lxml-html-clean.deb
|
||||||
$STD dpkg -i /opt/python3-lxml-html-clean.deb
|
$STD dpkg -i /opt/python3-lxml-html-clean.deb
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|||||||
@@ -370,7 +370,6 @@ run_container_safe() {
|
|||||||
|
|
||||||
cleanup_lxc() {
|
cleanup_lxc() {
|
||||||
msg_info "Cleaning up"
|
msg_info "Cleaning up"
|
||||||
|
|
||||||
if is_alpine; then
|
if is_alpine; then
|
||||||
$STD apk cache clean || true
|
$STD apk cache clean || true
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
@@ -380,15 +379,13 @@ cleanup_lxc() {
|
|||||||
$STD apt -y clean || true
|
$STD apt -y clean || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Clear temp artifacts (keep sockets/FIFOs; ignore errors)
|
rm -rf /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
# Remove temp files created by mktemp/tempfile
|
||||||
find /tmp /var/tmp -type f -name 'tmp*' -delete 2>/dev/null || true
|
find /tmp /var/tmp -type f -name 'tmp*' -delete 2>/dev/null || true
|
||||||
find /tmp /var/tmp -type f -name 'tempfile*' -delete 2>/dev/null || true
|
find /tmp /var/tmp -type f -name 'tempfile*' -delete 2>/dev/null || true
|
||||||
|
|
||||||
# Truncate writable log files silently (permission errors ignored)
|
find /var/log -type f -exec truncate -s 0 {} +
|
||||||
if command -v truncate >/dev/null 2>&1; then
|
|
||||||
find /var/log -type f -writable -print0 2>/dev/null | \
|
|
||||||
xargs -0 -n1 truncate -s 0 2>/dev/null || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Python pip
|
# Python pip
|
||||||
if command -v pip &>/dev/null; then pip cache purge || true; fi
|
if command -v pip &>/dev/null; then pip cache purge || true; fi
|
||||||
@@ -410,8 +407,8 @@ cleanup_lxc() {
|
|||||||
if command -v composer &>/dev/null; then composer clear-cache || true; fi
|
if command -v composer &>/dev/null; then composer clear-cache || true; fi
|
||||||
|
|
||||||
if command -v journalctl &>/dev/null; then
|
if command -v journalctl &>/dev/null; then
|
||||||
$STD journalctl --rotate || true
|
$STD journalctl --rotate
|
||||||
$STD journalctl --vacuum-time=10m || true
|
$STD journalctl --vacuum-time=10m
|
||||||
fi
|
fi
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user