refactor: decouple docs seeding from migrations with separate flags

This commit is contained in:
CREDO23 2026-01-09 17:04:58 +02:00
parent 6f67236143
commit 4aa686480e

View file

@ -167,10 +167,15 @@ seed_surfsense_docs() {
# Run migrations on first start or when explicitly requested
if [ ! -f /data/.migrations_run ] || [ "${FORCE_MIGRATIONS:-false}" = "true" ]; then
run_migrations
seed_surfsense_docs
touch /data/.migrations_run
fi
# Seed docs on first start or when explicitly requested
if [ ! -f /data/.docs_seeded ] || [ "${FORCE_SEED_DOCS:-false}" = "true" ]; then
seed_surfsense_docs
touch /data/.docs_seeded
fi
# ================================================
# Environment Variables Info
# ================================================