mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-06 06:12:40 +02:00
refactor: decouple docs seeding from migrations with separate flags
This commit is contained in:
parent
6f67236143
commit
4aa686480e
1 changed files with 6 additions and 1 deletions
|
|
@ -167,10 +167,15 @@ seed_surfsense_docs() {
|
||||||
# Run migrations on first start or when explicitly requested
|
# Run migrations on first start or when explicitly requested
|
||||||
if [ ! -f /data/.migrations_run ] || [ "${FORCE_MIGRATIONS:-false}" = "true" ]; then
|
if [ ! -f /data/.migrations_run ] || [ "${FORCE_MIGRATIONS:-false}" = "true" ]; then
|
||||||
run_migrations
|
run_migrations
|
||||||
seed_surfsense_docs
|
|
||||||
touch /data/.migrations_run
|
touch /data/.migrations_run
|
||||||
fi
|
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
|
# Environment Variables Info
|
||||||
# ================================================
|
# ================================================
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue