#!/usr/bin/env bash source <(curl -fsSL https://scripts.francoisvw.com/snapshots/c19711ea1b2526bec67e34be948114e255b5a811/misc/build.func) # Copyright (c) 2021-2026 community-scripts ORG # Author: MickLesk (CanbiZ) # License: MIT | https://scripts.francoisvw.com/snapshots/c19711ea1b2526bec67e34be948114e255b5a811/LICENSE # Source: https://fumadocs.vercel.app/ | Github: https://github.com/fuma-nama/fumadocs APP="Fumadocs" var_tags="${var_tags:-documentation}" var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" var_disk="${var_disk:-5}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_arm64="${var_arm64:-yes}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" variables color catch_errors function update_script() { header_info check_container_storage check_container_resources if [[ ! -d /opt/fumadocs ]]; then msg_error "No installation found in /opt/fumadocs!" exit fi if [[ ! -f /opt/fumadocs/.projectname ]]; then msg_error "Project name file not found: /opt/fumadocs/.projectname!" exit fi NODE_VERSION="24" NODE_MODULE="pnpm@latest" setup_nodejs PROJECT_NAME=$(