Zerobyte defaults: resources, davfs2 & migrations

Increase Zerobyte VM defaults (CPU 2→4, RAM 4096→6192). Add a debconf preseed for davfs2 (suid_file=false) to prevent interactive prompts during apt install. Remove redundant mkdir/cp of drizzle migrations and instead expose MIGRATIONS_PATH (/opt/zerobyte/app/drizzle) in the installer environment so migrations are referenced in-place rather than duplicated.
This commit is contained in:
CanbiZ (MickLesk) 2026-02-18 11:13:49 +01:00
parent f45b5b461f
commit 110e6fa2e9
2 changed files with 4 additions and 6 deletions

View File

@ -7,8 +7,8 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
APP="Zerobyte"
var_tags="${var_tags:-backup;encryption;restic}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-4096}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-6192}"
var_disk="${var_disk:-10}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
@ -44,8 +44,6 @@ function update_script() {
cd /opt/zerobyte
$STD bun install
$STD bun run build
mkdir -p /opt/zerobyte/assets
cp -r /opt/zerobyte/app/drizzle /opt/zerobyte/assets/migrations
msg_ok "Built Zerobyte"
msg_info "Restoring Configuration"

View File

@ -14,6 +14,7 @@ network_check
update_os
msg_info "Installing Dependencies"
echo "davfs2 davfs2/suid_file boolean false" | debconf-set-selections
$STD apt-get install -y \
bzip2 \
fuse3 \
@ -49,8 +50,6 @@ export VITE_RCLONE_VERSION=$(cat ~/.rclone)
export VITE_SHOUTRRR_VERSION=$(cat ~/.shoutrrr)
$STD bun install
$STD bun run build
mkdir -p /opt/zerobyte/assets
cp -r /opt/zerobyte/app/drizzle /opt/zerobyte/assets/migrations
msg_ok "Built Zerobyte"
msg_info "Configuring Zerobyte"
@ -64,6 +63,7 @@ ZEROBYTE_DATABASE_URL=/var/lib/zerobyte/data/zerobyte.db
RESTIC_CACHE_DIR=/var/lib/zerobyte/restic/cache
ZEROBYTE_REPOSITORIES_DIR=/var/lib/zerobyte/repositories
ZEROBYTE_VOLUMES_DIR=/var/lib/zerobyte/volumes
MIGRATIONS_PATH=/opt/zerobyte/app/drizzle
NODE_ENV=production
EOF
msg_ok "Configured Zerobyte"