From 110e6fa2e9d4499c899f81b7693f77cd1b6753bc Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 18 Feb 2026 11:13:49 +0100 Subject: [PATCH] Zerobyte defaults: resources, davfs2 & migrations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- ct/zerobyte.sh | 6 ++---- install/zerobyte-install.sh | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ct/zerobyte.sh b/ct/zerobyte.sh index 0e9f21535..6abff7565 100644 --- a/ct/zerobyte.sh +++ b/ct/zerobyte.sh @@ -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" diff --git a/install/zerobyte-install.sh b/install/zerobyte-install.sh index 13763be0b..8407c9a02 100644 --- a/install/zerobyte-install.sh +++ b/install/zerobyte-install.sh @@ -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"