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

@@ -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"