mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-22 00:14:56 +02:00
Compare commits
18 Commits
feat/updat
...
feat/setup
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
237499e4d7 | ||
|
|
bade9b289d | ||
|
|
be2e3a4a3a | ||
|
|
3c02868add | ||
|
|
07cd4c0c3e | ||
|
|
f11edd21c9 | ||
|
|
9fc822d936 | ||
|
|
bf1c32ace8 | ||
|
|
611021ae8c | ||
|
|
12eb19ae4c | ||
|
|
c8dc0cffe0 | ||
|
|
95c7628362 | ||
|
|
50b3c3ae7f | ||
|
|
752fff3c8f | ||
|
|
129e221664 | ||
|
|
21c064464a | ||
|
|
6317e7a867 | ||
|
|
739e0aa41e |
41
CHANGELOG.md
41
CHANGELOG.md
@@ -458,6 +458,47 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
## 2026-05-07
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- vm: update disk image URL for Ubuntu 25.04 [@MickLesk](https://github.com/MickLesk) ([#14290](https://github.com/community-scripts/ProxmoxVE/pull/14290))
|
||||||
|
|
||||||
|
- #### ✨ New Features
|
||||||
|
|
||||||
|
- pangolin: bump version to 1.18.3 [@MickLesk](https://github.com/MickLesk) ([#14297](https://github.com/community-scripts/ProxmoxVE/pull/14297))
|
||||||
|
|
||||||
|
### 🗑️ Deleted Scripts
|
||||||
|
|
||||||
|
- Remove: LiteLLM [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#14294](https://github.com/community-scripts/ProxmoxVE/pull/14294))
|
||||||
|
|
||||||
|
### 💾 Core
|
||||||
|
|
||||||
|
- #### ✨ New Features
|
||||||
|
|
||||||
|
- update-apps: some improvements [@MickLesk](https://github.com/MickLesk) ([#14275](https://github.com/community-scripts/ProxmoxVE/pull/14275))
|
||||||
|
|
||||||
|
## 2026-05-06
|
||||||
|
|
||||||
|
### 🆕 New Scripts
|
||||||
|
|
||||||
|
- Hoodik ([#14279](https://github.com/community-scripts/ProxmoxVE/pull/14279))
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- Pelican-Panel: create backup subdirectory before copying storage [@MickLesk](https://github.com/MickLesk) ([#14274](https://github.com/community-scripts/ProxmoxVE/pull/14274))
|
||||||
|
- Rustdeskserver: remove redundant else with undefined RELEASE var [@MickLesk](https://github.com/MickLesk) ([#14272](https://github.com/community-scripts/ProxmoxVE/pull/14272))
|
||||||
|
|
||||||
|
### 🧰 Tools
|
||||||
|
|
||||||
|
- #### 🔧 Refactor
|
||||||
|
|
||||||
|
- AdguardHome-Sync replace ifconfig with hostname -I for IP detection [@MickLesk](https://github.com/MickLesk) ([#14273](https://github.com/community-scripts/ProxmoxVE/pull/14273))
|
||||||
|
|
||||||
## 2026-05-05
|
## 2026-05-05
|
||||||
|
|
||||||
### 🆕 New Scripts
|
### 🆕 New Scripts
|
||||||
|
|||||||
6
ct/headers/hoodik
Normal file
6
ct/headers/hoodik
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
__ __ ___ __
|
||||||
|
/ / / /___ ____ ____/ (_) /__
|
||||||
|
/ /_/ / __ \/ __ \/ __ / / //_/
|
||||||
|
/ __ / /_/ / /_/ / /_/ / / ,<
|
||||||
|
/_/ /_/\____/\____/\__,_/_/_/|_|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
__ _ __ __ __ __ ___
|
|
||||||
/ / (_) /____ / / / / / |/ /
|
|
||||||
/ / / / __/ _ \/ / / / / /|_/ /
|
|
||||||
/ /___/ / /_/ __/ /___/ /___/ / / /
|
|
||||||
/_____/_/\__/\___/_____/_____/_/ /_/
|
|
||||||
|
|
||||||
64
ct/hoodik.sh
Normal file
64
ct/hoodik.sh
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/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/hudikhq/hoodik
|
||||||
|
|
||||||
|
APP="Hoodik"
|
||||||
|
var_tags="${var_tags:-cloud;storage}"
|
||||||
|
var_cpu="${var_cpu:-1}"
|
||||||
|
var_ram="${var_ram:-1024}"
|
||||||
|
var_disk="${var_disk:-5}"
|
||||||
|
var_os="${var_os:-debian}"
|
||||||
|
var_version="${var_version:-13}"
|
||||||
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
|
header_info "$APP"
|
||||||
|
variables
|
||||||
|
color
|
||||||
|
catch_errors
|
||||||
|
|
||||||
|
function update_script() {
|
||||||
|
header_info
|
||||||
|
check_container_storage
|
||||||
|
check_container_resources
|
||||||
|
|
||||||
|
if [[ ! -f /opt/hoodik/hoodik ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if check_for_gh_release "hoodik" "hudikhq/hoodik"; then
|
||||||
|
msg_info "Stopping Service"
|
||||||
|
systemctl stop hoodik
|
||||||
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
|
msg_info "Backing up Configuration"
|
||||||
|
cp /opt/hoodik/.env /opt/hoodik.env.bak
|
||||||
|
msg_ok "Backed up Configuration"
|
||||||
|
|
||||||
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "hoodik" "hudikhq/hoodik" "prebuild" "latest" "/opt/hoodik" "*x86_64.tar.gz"
|
||||||
|
|
||||||
|
msg_info "Restoring Configuration"
|
||||||
|
cp /opt/hoodik.env.bak /opt/hoodik/.env
|
||||||
|
rm -f /opt/hoodik.env.bak
|
||||||
|
msg_ok "Restored Configuration"
|
||||||
|
|
||||||
|
msg_info "Starting Service"
|
||||||
|
systemctl start hoodik
|
||||||
|
msg_ok "Started Service"
|
||||||
|
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 "${TAB}${GATEWAY}${BGN}http://${IP}:5443/auth/register${CL}"
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: stout01
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/BerriAI/litellm
|
|
||||||
|
|
||||||
APP="LiteLLM"
|
|
||||||
var_tags="${var_tags:-ai;interface}"
|
|
||||||
var_cpu="${var_cpu:-2}"
|
|
||||||
var_ram="${var_ram:-2048}"
|
|
||||||
var_disk="${var_disk:-4}"
|
|
||||||
var_os="${var_os:-debian}"
|
|
||||||
var_version="${var_version:-13}"
|
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
|
||||||
|
|
||||||
header_info "$APP"
|
|
||||||
variables
|
|
||||||
color
|
|
||||||
catch_errors
|
|
||||||
|
|
||||||
function update_script() {
|
|
||||||
header_info
|
|
||||||
check_container_storage
|
|
||||||
check_container_resources
|
|
||||||
|
|
||||||
if [[ ! -f /etc/systemd/system/litellm.service ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop litellm
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
VENV_PATH="/opt/litellm/.venv"
|
|
||||||
PYTHON_VERSION="3.13" USE_UVX="YES" setup_uv
|
|
||||||
|
|
||||||
msg_info "Updating LiteLLM"
|
|
||||||
$STD "$VENV_PATH/bin/python" -m pip install --upgrade litellm[proxy] prisma
|
|
||||||
$STD "$VENV_PATH/bin/prisma" generate
|
|
||||||
msg_ok "LiteLLM updated"
|
|
||||||
|
|
||||||
msg_info "Updating DB Schema"
|
|
||||||
$STD /opt/litellm/.venv/bin/litellm --config /opt/litellm/litellm.yaml --use_prisma_db_push --skip_server_startup
|
|
||||||
msg_ok "DB Schema Updated"
|
|
||||||
|
|
||||||
msg_info "Updating Service"
|
|
||||||
sed -i 's|ExecStart=uv --directory=/opt/litellm run litellm|ExecStart=/opt/litellm/.venv/bin/litellm|' /etc/systemd/system/litellm.service
|
|
||||||
systemctl daemon-reload
|
|
||||||
msg_ok "Updated Service"
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start litellm
|
|
||||||
msg_ok "Started Service"
|
|
||||||
msg_ok "Updated successfully!"
|
|
||||||
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 "${TAB}${GATEWAY}${BGN}http://${IP}:4000${CL}"
|
|
||||||
@@ -81,11 +81,7 @@ STARTEOF
|
|||||||
cp -r /opt/mealie/frontend/dist/* /opt/mealie/mealie/frontend/
|
cp -r /opt/mealie/frontend/dist/* /opt/mealie/mealie/frontend/
|
||||||
msg_ok "Copied Frontend"
|
msg_ok "Copied Frontend"
|
||||||
|
|
||||||
msg_info "Updating NLTK Data"
|
setup_nltk "averaged_perceptron_tagger_eng" "/nltk_data"
|
||||||
mkdir -p /nltk_data/
|
|
||||||
cd /opt/mealie
|
|
||||||
$STD uv run python -m nltk.downloader -d /nltk_data averaged_perceptron_tagger_eng
|
|
||||||
msg_ok "Updated NLTK Data"
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start mealie
|
systemctl start mealie
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
|
|||||||
# Source: https://pangolin.net/ | Github: https://github.com/fosrl/pangolin
|
# Source: https://pangolin.net/ | Github: https://github.com/fosrl/pangolin
|
||||||
|
|
||||||
APP="Pangolin"
|
APP="Pangolin"
|
||||||
PANGOLIN_VERSION="${PANGOLIN_VERSION:-1.18.2}"
|
PANGOLIN_VERSION="${PANGOLIN_VERSION:-1.18.3}"
|
||||||
var_tags="${var_tags:-proxy}"
|
var_tags="${var_tags:-proxy}"
|
||||||
var_cpu="${var_cpu:-2}"
|
var_cpu="${var_cpu:-2}"
|
||||||
var_ram="${var_ram:-4096}"
|
var_ram="${var_ram:-4096}"
|
||||||
|
|||||||
@@ -164,13 +164,7 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Updating NLTK Data"
|
setup_nltk "snowball_data stopwords punkt_tab" "/usr/share/nltk_data"
|
||||||
cd /opt/paperless
|
|
||||||
$STD uv run python -m nltk.downloader -d /usr/share/nltk_data snowball_data
|
|
||||||
$STD uv run python -m nltk.downloader -d /usr/share/nltk_data stopwords
|
|
||||||
$STD uv run python -m nltk.downloader -d /usr/share/nltk_data punkt_tab ||
|
|
||||||
$STD uv run python -m nltk.downloader -d /usr/share/nltk_data punkt
|
|
||||||
msg_ok "Updated NLTK Data"
|
|
||||||
|
|
||||||
msg_info "Starting all Paperless-ngx Services"
|
msg_info "Starting all Paperless-ngx Services"
|
||||||
systemctl start paperless-consumer paperless-webserver paperless-scheduler paperless-task-queue
|
systemctl start paperless-consumer paperless-webserver paperless-scheduler paperless-task-queue
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ function update_script() {
|
|||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
cp -a /opt/pelican-panel/.env /opt/backup
|
cp -a /opt/pelican-panel/.env /opt/backup
|
||||||
|
mkdir -p /opt/backup/storage/app/
|
||||||
cp -a /opt/pelican-panel/storage/app/public /opt/backup/storage/app/
|
cp -a /opt/pelican-panel/storage/app/public /opt/backup/storage/app/
|
||||||
|
|
||||||
SQLITE_INSTALL=$(ls /opt/pelican-panel/database/*.sqlite 1>/dev/null 2>&1 && echo "true" || echo "false")
|
SQLITE_INSTALL=$(ls /opt/pelican-panel/database/*.sqlite 1>/dev/null 2>&1 && echo "true" || echo "false")
|
||||||
|
|||||||
@@ -48,8 +48,6 @@ function update_script() {
|
|||||||
msg_ok "Services started"
|
msg_ok "Services started"
|
||||||
|
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
else
|
|
||||||
msg_ok "No update required. ${APP} is already at v${RELEASE}"
|
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|||||||
58
install/hoodik-install.sh
Normal file
58
install/hoodik-install.sh
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
#!/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/hudikhq/hoodik
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
fetch_and_deploy_gh_release "hoodik" "hudikhq/hoodik" "prebuild" "latest" "/opt/hoodik" "*x86_64.tar.gz"
|
||||||
|
|
||||||
|
msg_info "Configuring Hoodik"
|
||||||
|
mkdir -p /opt/hoodik_data
|
||||||
|
JWT_SECRET=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32)
|
||||||
|
cat <<EOF >/opt/hoodik/.env
|
||||||
|
DATA_DIR=/opt/hoodik_data
|
||||||
|
HTTP_PORT=5443
|
||||||
|
HTTP_ADDRESS=0.0.0.0
|
||||||
|
JWT_SECRET=${JWT_SECRET}
|
||||||
|
APP_URL=http://${LOCAL_IP}:5443
|
||||||
|
SSL_DISABLED=true
|
||||||
|
COOKIE_SECURE=false
|
||||||
|
COOKIE_HTTP_ONLY=false
|
||||||
|
MAILER_TYPE=none
|
||||||
|
RUST_LOG=hoodik=info,error=info
|
||||||
|
EOF
|
||||||
|
msg_ok "Configured Hoodik"
|
||||||
|
|
||||||
|
msg_info "Creating Service"
|
||||||
|
cat <<EOF >/etc/systemd/system/hoodik.service
|
||||||
|
[Unit]
|
||||||
|
Description=Hoodik - Encrypted File Storage
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/opt/hoodik_data
|
||||||
|
EnvironmentFile=/opt/hoodik/.env
|
||||||
|
ExecStart=/opt/hoodik/hoodik
|
||||||
|
Restart=always
|
||||||
|
RestartSec=5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl enable -q --now hoodik
|
||||||
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
@@ -47,8 +47,7 @@ msg_info "Setting up KitchenOwl"
|
|||||||
cd /opt/kitchenowl/backend
|
cd /opt/kitchenowl/backend
|
||||||
$STD uv sync --no-dev
|
$STD uv sync --no-dev
|
||||||
sed -i 's/default=True/default=False/' /opt/kitchenowl/backend/wsgi.py
|
sed -i 's/default=True/default=False/' /opt/kitchenowl/backend/wsgi.py
|
||||||
mkdir -p /nltk_data
|
setup_nltk "averaged_perceptron_tagger_eng" "/nltk_data"
|
||||||
$STD uv run python -m nltk.downloader -d /nltk_data averaged_perceptron_tagger_eng
|
|
||||||
JWT_SECRET=$(openssl rand -hex 32)
|
JWT_SECRET=$(openssl rand -hex 32)
|
||||||
mkdir -p /opt/kitchenowl/data
|
mkdir -p /opt/kitchenowl/data
|
||||||
cat <<EOF >/opt/kitchenowl/kitchenowl.env
|
cat <<EOF >/opt/kitchenowl/kitchenowl.env
|
||||||
|
|||||||
@@ -1,65 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: stout01
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/BerriAI/litellm
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt install -y \
|
|
||||||
build-essential \
|
|
||||||
python3-dev
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
PG_VERSION="17" setup_postgresql
|
|
||||||
PG_DB_NAME="litellm_db" PG_DB_USER="litellm" setup_postgresql_db
|
|
||||||
PYTHON_VERSION="3.13" USE_UVX="YES" setup_uv
|
|
||||||
|
|
||||||
msg_info "Setting up Virtual Environment"
|
|
||||||
mkdir -p /opt/litellm
|
|
||||||
cd /opt/litellm
|
|
||||||
$STD uv venv --clear /opt/litellm/.venv
|
|
||||||
$STD /opt/litellm/.venv/bin/python -m ensurepip --upgrade
|
|
||||||
$STD /opt/litellm/.venv/bin/python -m pip install --upgrade pip
|
|
||||||
$STD /opt/litellm/.venv/bin/python -m pip install litellm[proxy] prisma
|
|
||||||
$STD /opt/litellm/.venv/bin/prisma generate
|
|
||||||
msg_ok "Installed LiteLLM"
|
|
||||||
|
|
||||||
msg_info "Configuring LiteLLM"
|
|
||||||
mkdir -p /opt
|
|
||||||
cat <<EOF >/opt/litellm/litellm.yaml
|
|
||||||
general_settings:
|
|
||||||
master_key: sk-1234
|
|
||||||
database_url: postgresql://$PG_DB_USER:$PG_DB_PASS@127.0.0.1:5432/$PG_DB_NAME
|
|
||||||
store_model_in_db: true
|
|
||||||
EOF
|
|
||||||
$STD /opt/litellm/.venv/bin/litellm --config /opt/litellm/litellm.yaml --use_prisma_db_push --skip_server_startup
|
|
||||||
msg_ok "Configured LiteLLM"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
cat <<EOF >/etc/systemd/system/litellm.service
|
|
||||||
[Unit]
|
|
||||||
Description=LiteLLM
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/opt/litellm/.venv/bin/litellm --config /opt/litellm/litellm.yaml
|
|
||||||
Restart=always
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now litellm
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -55,11 +55,7 @@ mkdir -p /opt/mealie/mealie/frontend
|
|||||||
cp -r /opt/mealie/frontend/dist/* /opt/mealie/mealie/frontend/
|
cp -r /opt/mealie/frontend/dist/* /opt/mealie/mealie/frontend/
|
||||||
msg_ok "Copied Frontend"
|
msg_ok "Copied Frontend"
|
||||||
|
|
||||||
msg_info "Downloading NLTK Data"
|
setup_nltk "averaged_perceptron_tagger_eng" "/nltk_data"
|
||||||
mkdir -p /nltk_data/
|
|
||||||
cd /opt/mealie
|
|
||||||
$STD uv run python -m nltk.downloader -d /nltk_data averaged_perceptron_tagger_eng
|
|
||||||
msg_ok "Downloaded NLTK Data"
|
|
||||||
|
|
||||||
msg_info "Writing Environment File"
|
msg_info "Writing Environment File"
|
||||||
SECRET=$(openssl rand -hex 32)
|
SECRET=$(openssl rand -hex 32)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ $STD apt install -y \
|
|||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
NODE_VERSION="24" setup_nodejs
|
NODE_VERSION="24" setup_nodejs
|
||||||
PANGOLIN_VERSION="${PANGOLIN_VERSION:-1.18.2}"
|
PANGOLIN_VERSION="${PANGOLIN_VERSION:-1.18.3}"
|
||||||
fetch_and_deploy_gh_release "pangolin" "fosrl/pangolin" "tarball" "$PANGOLIN_VERSION"
|
fetch_and_deploy_gh_release "pangolin" "fosrl/pangolin" "tarball" "$PANGOLIN_VERSION"
|
||||||
fetch_and_deploy_gh_release "gerbil" "fosrl/gerbil" "singlefile" "latest" "/usr/bin" "gerbil_linux_amd64"
|
fetch_and_deploy_gh_release "gerbil" "fosrl/gerbil" "singlefile" "latest" "/usr/bin" "gerbil_linux_amd64"
|
||||||
fetch_and_deploy_gh_release "traefik" "traefik/traefik" "prebuild" "latest" "/usr/bin" "traefik_v*_linux_amd64.tar.gz"
|
fetch_and_deploy_gh_release "traefik" "traefik/traefik" "prebuild" "latest" "/usr/bin" "traefik_v*_linux_amd64.tar.gz"
|
||||||
|
|||||||
@@ -94,18 +94,12 @@ user.save()
|
|||||||
EOF
|
EOF
|
||||||
msg_ok "Set up admin Paperless-ngx User & Password"
|
msg_ok "Set up admin Paperless-ngx User & Password"
|
||||||
|
|
||||||
msg_info "Installing Natural Language Toolkit (Patience)"
|
setup_nltk "snowball_data stopwords punkt_tab" "/usr/share/nltk_data"
|
||||||
cd /opt/paperless
|
|
||||||
$STD uv run python -m nltk.downloader -d /usr/share/nltk_data snowball_data
|
|
||||||
$STD uv run python -m nltk.downloader -d /usr/share/nltk_data stopwords
|
|
||||||
$STD uv run python -m nltk.downloader -d /usr/share/nltk_data punkt_tab ||
|
|
||||||
$STD uv run python -m nltk.downloader -d /usr/share/nltk_data punkt
|
|
||||||
for policy_file in /etc/ImageMagick-6/policy.xml /etc/ImageMagick-7/policy.xml; do
|
for policy_file in /etc/ImageMagick-6/policy.xml /etc/ImageMagick-7/policy.xml; do
|
||||||
if [[ -f "$policy_file" ]]; then
|
if [[ -f "$policy_file" ]]; then
|
||||||
sed -i -e 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' "$policy_file"
|
sed -i -e 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' "$policy_file"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
msg_ok "Installed Natural Language Toolkit"
|
|
||||||
|
|
||||||
msg_info "Creating Services"
|
msg_info "Creating Services"
|
||||||
cat <<EOF >/etc/systemd/system/paperless-scheduler.service
|
cat <<EOF >/etc/systemd/system/paperless-scheduler.service
|
||||||
|
|||||||
@@ -2095,10 +2095,10 @@ get_latest_gh_tag() {
|
|||||||
local count
|
local count
|
||||||
count=$(jq 'length' "$temp_file" 2>/dev/null || echo 0)
|
count=$(jq 'length' "$temp_file" 2>/dev/null || echo 0)
|
||||||
if [[ "$count" -gt 0 ]]; then
|
if [[ "$count" -gt 0 ]]; then
|
||||||
tag=$(jq -r '.[].ref' "$temp_file" \
|
tag=$(jq -r '.[].ref' "$temp_file" |
|
||||||
| sed 's|^refs/tags/||' \
|
sed 's|^refs/tags/||' |
|
||||||
| sort -V \
|
sort -V |
|
||||||
| tail -n1)
|
tail -n1)
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# No prefix: just take the first (newest) tag from /tags
|
# No prefix: just take the first (newest) tag from /tags
|
||||||
@@ -9439,3 +9439,73 @@ function fetch_and_deploy_gl_release() {
|
|||||||
msg_ok "Deployed: $app ($version)"
|
msg_ok "Deployed: $app ($version)"
|
||||||
rm -rf "$tmpdir"
|
rm -rf "$tmpdir"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Download NLTK data packages directly from GitHub, bypassing Python.
|
||||||
|
# Avoids CPU-instruction failures (SIGILL) on older hardware lacking AVX.
|
||||||
|
#
|
||||||
|
# Usage:
|
||||||
|
# setup_nltk "averaged_perceptron_tagger_eng" "/nltk_data"
|
||||||
|
# setup_nltk "snowball_data stopwords punkt_tab" "/usr/share/nltk_data"
|
||||||
|
#
|
||||||
|
# Parameters:
|
||||||
|
# $1 - Space-separated list of NLTK package IDs
|
||||||
|
# $2 - Target directory (default: /usr/share/nltk_data)
|
||||||
|
#
|
||||||
|
# Returns: 0 on success, non-zero if any package failed
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
function setup_nltk() {
|
||||||
|
local packages="${1:?setup_nltk requires at least one package name}"
|
||||||
|
local target_dir="${2:-/usr/share/nltk_data}"
|
||||||
|
local NLTK_INDEX_URL="https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/index.xml"
|
||||||
|
local index_xml rc=0
|
||||||
|
|
||||||
|
ensure_dependencies unzip
|
||||||
|
|
||||||
|
index_xml=$(curl_with_retry "$NLTK_INDEX_URL" "-") || {
|
||||||
|
msg_error "Failed to fetch NLTK package index"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
local pkg
|
||||||
|
for pkg in $packages; do
|
||||||
|
msg_info "Downloading NLTK: $pkg"
|
||||||
|
local pkg_line subdir pkg_url do_unzip tmp_zip
|
||||||
|
|
||||||
|
pkg_line=$(echo "$index_xml" | grep "id=\"${pkg}\"" | head -1)
|
||||||
|
if [[ -z "$pkg_line" ]]; then
|
||||||
|
msg_error "NLTK package not found in index: $pkg"
|
||||||
|
rc=1
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
subdir=$(echo "$pkg_line" | grep -oP 'subdir="\K[^"]+')
|
||||||
|
pkg_url=$(echo "$pkg_line" | grep -oP 'url="\K[^"]+')
|
||||||
|
do_unzip=$(echo "$pkg_line" | grep -oP 'unzip="\K[^"]+')
|
||||||
|
|
||||||
|
if [[ -z "$subdir" || -z "$pkg_url" ]]; then
|
||||||
|
msg_error "Could not parse NLTK index entry for: $pkg"
|
||||||
|
rc=1
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p "${target_dir}/${subdir}"
|
||||||
|
tmp_zip=$(mktemp --suffix=.zip)
|
||||||
|
|
||||||
|
if CURL_TIMEOUT=120 curl_with_retry "$pkg_url" "$tmp_zip"; then
|
||||||
|
if [[ "$do_unzip" == "1" ]]; then
|
||||||
|
$STD unzip -q -o "$tmp_zip" -d "${target_dir}/${subdir}/"
|
||||||
|
rm -f "$tmp_zip"
|
||||||
|
else
|
||||||
|
mv "$tmp_zip" "${target_dir}/${subdir}/${pkg}.zip"
|
||||||
|
fi
|
||||||
|
msg_ok "Downloaded NLTK: $pkg"
|
||||||
|
else
|
||||||
|
msg_error "Failed to download NLTK package: $pkg"
|
||||||
|
rm -f "$tmp_zip"
|
||||||
|
rc=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
return $rc
|
||||||
|
}
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ EOF
|
|||||||
# HELPER FUNCTIONS
|
# HELPER FUNCTIONS
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
get_ip() {
|
get_ip() {
|
||||||
ifconfig | grep -v '127.0.0.1' | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -m1 -Eo '([0-9]*\.){3}[0-9]*' || echo "127.0.0.1"
|
hostname -I 2>/dev/null | awk '{print $1}' || ip -4 addr show scope global 2>/dev/null | awk '/inet / {print $2}' | cut -d/ -f1 | head -n1 || echo "127.0.0.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|||||||
@@ -494,7 +494,7 @@ fi
|
|||||||
msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location."
|
msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location."
|
||||||
msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}."
|
msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}."
|
||||||
msg_info "Retrieving the URL for the Ubuntu 25.04 Disk Image"
|
msg_info "Retrieving the URL for the Ubuntu 25.04 Disk Image"
|
||||||
URL=https://cloud-images.ubuntu.com/plucky/current/plucky-server-cloudimg-amd64.img
|
URL=https://cloud-images.ubuntu.com/releases/server/plucky/release/ubuntu-25.04-server-cloudimg-amd64.img
|
||||||
sleep 2
|
sleep 2
|
||||||
msg_ok "${CL}${BL}${URL}${CL}"
|
msg_ok "${CL}${BL}${URL}${CL}"
|
||||||
curl -f#SL -o "$(basename "$URL")" "$URL"
|
curl -f#SL -o "$(basename "$URL")" "$URL"
|
||||||
|
|||||||
Reference in New Issue
Block a user