mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-21 05:18:25 +01:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e43e330ff6 | ||
|
|
01e23a0c50 |
No files matched your search
@@ -592,6 +592,10 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
- Stalwart: migrate to v1 with stalwart-migrate [@MickLesk](https://github.com/MickLesk) ([#18794](https://github.com/community-scripts/ProxmoxVE/pull/18794))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- fix: vm - name why an image step failed and open one message for the disk import [@MickLesk](https://github.com/MickLesk) ([core#279](https://github.com/community-scripts/core/pull/279))
|
||||
|
||||
## 2026-11-19
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
+22
-40
@@ -12,7 +12,7 @@ var_cpu="${var_cpu:-2}"
|
||||
var_ram="${var_ram:-1024}"
|
||||
var_disk="${var_disk:-8}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_version="${var_version:-12}"
|
||||
var_arm64="${var_arm64:-yes}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
@@ -30,48 +30,30 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "archivebox" "ArchiveBox/ArchiveBox"; then
|
||||
msg_info "Stopping ArchiveBox"
|
||||
systemctl stop archivebox
|
||||
msg_ok "Stopped ArchiveBox"
|
||||
NODE_VERSION="22" NODE_MODULE="@postlight/parser@latest,single-file-cli@latest" setup_nodejs
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
|
||||
export UV_PYTHON_INSTALL_DIR="/opt/archivebox/python"
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
ensure_dependencies chromium
|
||||
ensure_dependencies chromium
|
||||
|
||||
if [[ ! -x /opt/archivebox/.venv/bin/archivebox ]]; then
|
||||
msg_info "Migrating ArchiveBox to 0.9"
|
||||
$STD uv pip uninstall --system --break-system-packages archivebox playwright
|
||||
rm -rf /home/archivebox/.cache/ms-playwright
|
||||
remove_old_tool_version "nodejs" "nodesource"
|
||||
sed -i -e '/^User=archivebox$/d' -e 's|^ExecStart=/usr/local/bin/archivebox |ExecStart=/opt/archivebox/.venv/bin/archivebox |' /etc/systemd/system/archivebox.service
|
||||
sed -i '/^ExecStart=/i ExecStartPre=-/bin/sh -c "echo 1G 2>/dev/null >/sys/fs/cgroup/memory.reclaim"' /etc/systemd/system/archivebox.service
|
||||
systemctl daemon-reload
|
||||
$STD uv venv --python 3.13 /opt/archivebox/.venv
|
||||
msg_ok "Migrated ArchiveBox to 0.9"
|
||||
fi
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop archivebox
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Updating ArchiveBox"
|
||||
$STD uv pip install --python /opt/archivebox/.venv/bin/python "archivebox==${CHECK_UPDATE_RELEASE#v}"
|
||||
ln -sf /opt/archivebox/.venv/bin/archivebox /usr/local/bin/archivebox
|
||||
cd /opt/archivebox/data
|
||||
$STD archivebox init
|
||||
if ! grep -q "^BASE_URL" ArchiveBox.conf; then
|
||||
$STD archivebox config --set "BASE_URL=http://${LOCAL_IP}:$(grep -oP 'server 0\.0\.0\.0:\K[0-9]+' /etc/systemd/system/archivebox.service)"
|
||||
fi
|
||||
echo 1G 2>/dev/null >/sys/fs/cgroup/memory.reclaim || true
|
||||
$STD archivebox install
|
||||
$STD archivebox update --migrate-only
|
||||
cat <<EOF >~/.archivebox
|
||||
${CHECK_UPDATE_RELEASE#v}
|
||||
EOF
|
||||
msg_ok "Updated ArchiveBox"
|
||||
msg_info "Upgrading Playwright"
|
||||
$STD uv pip install playwright --system --break-system-packages
|
||||
$STD playwright install-deps chromium
|
||||
msg_ok "Upgraded Playwright"
|
||||
|
||||
msg_info "Starting ArchiveBox"
|
||||
systemctl start archivebox
|
||||
msg_ok "Started ArchiveBox"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
msg_info "Updating ArchiveBox"
|
||||
cd /opt/archivebox/data
|
||||
$STD uv pip install --system --break-system-packages --upgrade --no-reinstall archivebox
|
||||
sudo -u archivebox archivebox init
|
||||
msg_ok "Updated ArchiveBox"
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start archivebox
|
||||
msg_ok "Started Service"
|
||||
msg_ok "Updated successfully!"
|
||||
exit
|
||||
}
|
||||
|
||||
@@ -82,4 +64,4 @@ 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}:8000/admin/${CL}"
|
||||
echo -e "${GATEWAY}${BGN}http://${IP}:8000/admin/login${CL}"
|
||||
@@ -29,6 +29,29 @@ function update_script() {
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
if [[ ! -f /etc/systemd/system/deconz.service ]]; then
|
||||
msg_info "Moving Service to /etc/systemd/system"
|
||||
# A deconz upgrade overwrites /lib/systemd/system/deconz.service with its own User=1000 unit
|
||||
cat <<EOF >/etc/systemd/system/deconz.service
|
||||
[Unit]
|
||||
Description=deCONZ: ZigBee gateway -- REST API
|
||||
Wants=deconz-init.service deconz-update.service
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
ExecStart=/usr/bin/deCONZ -platform minimal --http-port=80
|
||||
Restart=on-failure
|
||||
RestartSec=30
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_KILL CAP_SYS_BOOT CAP_SYS_TIME
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
systemctl reenable -q deconz
|
||||
msg_ok "Moved Service to /etc/systemd/system"
|
||||
fi
|
||||
msg_info "Updating deCONZ"
|
||||
apt_update_safe
|
||||
$STD apt upgrade -y
|
||||
|
||||
@@ -15,42 +15,68 @@ update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y \
|
||||
git \
|
||||
expect \
|
||||
libssl-dev \
|
||||
libldap2-dev \
|
||||
libsasl2-dev \
|
||||
procps \
|
||||
dnsutils \
|
||||
ripgrep \
|
||||
libatomic1 \
|
||||
chromium
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
export UV_PYTHON_INSTALL_DIR="/opt/archivebox/python"
|
||||
msg_info "Installing Python Dependencies"
|
||||
$STD apt install -y \
|
||||
python3-ldap \
|
||||
python3-msgpack \
|
||||
python3-regex
|
||||
msg_ok "Installed Python Dependencies"
|
||||
|
||||
NODE_VERSION="22" NODE_MODULE="@postlight/parser@latest,single-file-cli@latest" setup_nodejs
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
|
||||
msg_info "Installing Playwright"
|
||||
$STD uv pip install playwright --system --break-system-packages
|
||||
$STD playwright install-deps chromium
|
||||
msg_ok "Installed Playwright"
|
||||
|
||||
msg_info "Installing ArchiveBox"
|
||||
ARCHIVEBOX_VERSION="${var_appversion:-$(get_latest_github_release "ArchiveBox/ArchiveBox")}"
|
||||
mkdir -p /opt/archivebox/data
|
||||
$STD uv venv --python 3.13 /opt/archivebox/.venv
|
||||
$STD uv pip install --python /opt/archivebox/.venv/bin/python "archivebox==${ARCHIVEBOX_VERSION#v}"
|
||||
ln -sf /opt/archivebox/.venv/bin/archivebox /usr/local/bin/archivebox
|
||||
cat <<EOF >~/.archivebox
|
||||
${ARCHIVEBOX_VERSION#v}
|
||||
EOF
|
||||
msg_ok "Installed ArchiveBox"
|
||||
|
||||
msg_info "Initializing ArchiveBox"
|
||||
mkdir -p /opt/archivebox/{data,.npm,.cache,.local}
|
||||
$STD adduser --system --shell /bin/bash --gecos 'Archive Box User' --group --disabled-password --home /home/archivebox archivebox
|
||||
chown -R archivebox:archivebox /opt/archivebox/{data,.npm,.cache,.local}
|
||||
chmod -R 755 /opt/archivebox/data
|
||||
$STD uv pip install archivebox --system --break-system-packages
|
||||
cd /opt/archivebox/data
|
||||
$STD archivebox init
|
||||
ADMIN_PASS=$(random_password 20)
|
||||
DJANGO_SUPERUSER_USERNAME=archivebox DJANGO_SUPERUSER_EMAIL=archivebox@archivebox.local DJANGO_SUPERUSER_PASSWORD="$ADMIN_PASS" $STD archivebox manage createsuperuser --noinput
|
||||
$STD archivebox config --set "BASE_URL=http://${LOCAL_IP}:8000"
|
||||
cat <<EOF >~/archivebox.creds
|
||||
ArchiveBox Credentials
|
||||
Username: archivebox
|
||||
Password: ${ADMIN_PASS}
|
||||
EOF
|
||||
msg_ok "Initialized ArchiveBox"
|
||||
expect <<EOF
|
||||
set timeout -1
|
||||
log_user 0
|
||||
|
||||
msg_info "Installing ArchiveBox Extractors"
|
||||
# 0.9.77 counts page cache as used memory under a cgroup limit and refuses to run (ArchiveBox#1966)
|
||||
echo 1G 2>/dev/null >/sys/fs/cgroup/memory.reclaim || true
|
||||
$STD archivebox install
|
||||
msg_ok "Installed ArchiveBox Extractors"
|
||||
spawn sudo -u archivebox playwright install chromium
|
||||
spawn sudo -u archivebox archivebox setup
|
||||
|
||||
expect "Username"
|
||||
send "\r"
|
||||
|
||||
expect "Email address"
|
||||
send "\r"
|
||||
|
||||
expect "Password"
|
||||
send "${ADMIN_PASS}\r"
|
||||
|
||||
expect "Password (again)"
|
||||
send "${ADMIN_PASS}\r"
|
||||
|
||||
expect eof
|
||||
EOF
|
||||
{
|
||||
echo "ArchiveBox Credentials"
|
||||
echo "Username: archivebox"
|
||||
echo "Password: ${ADMIN_PASS}"
|
||||
} >~/archivebox.creds
|
||||
msg_ok "Installed ArchiveBox"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/archivebox.service
|
||||
@@ -59,9 +85,9 @@ Description=ArchiveBox Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=archivebox
|
||||
WorkingDirectory=/opt/archivebox/data
|
||||
ExecStartPre=-/bin/sh -c "echo 1G 2>/dev/null >/sys/fs/cgroup/memory.reclaim"
|
||||
ExecStart=/opt/archivebox/.venv/bin/archivebox server 0.0.0.0:8000
|
||||
ExecStart=/usr/local/bin/archivebox server 0.0.0.0:8000
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
|
||||
@@ -31,7 +31,7 @@ rm -rf "$libssl"
|
||||
msg_ok "Installed deConz"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/lib/systemd/system/deconz.service
|
||||
cat <<EOF >/etc/systemd/system/deconz.service
|
||||
[Unit]
|
||||
Description=deCONZ: ZigBee gateway -- REST API
|
||||
Wants=deconz-init.service deconz-update.service
|
||||
|
||||
Reference in new issue
Block a user