Skip to content

Commit

Permalink
Don't deprovision within running Kolibri to create preseeded DBs
Browse files Browse the repository at this point in the history
  • Loading branch information
bjester committed May 17, 2024
1 parent b3cb256 commit 1b7c572
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 33 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,12 @@ writeversion:
@echo "Current version is now `cat kolibri/VERSION`"

preseeddb:
PYTHONPATH=".:$PYTHONPATH" python build_tools/preseed_home.py
export KOLIBRI_HOME="$$(mktemp -d)"; \
export PYTHONPATH=".:$$PYTHONPATH"; \
cd kolibri; \
python -m kolibri manage deprovision --destroy-all-user-data --permanent-irrevocable-data-loss; \
mkdir -p dist/home; \
cp $$KOLIBRI_HOME/*.sqlite3 dist/home/;

setrequirements:
rm -r requirements.txt || true # remove requirements.txt
Expand Down
32 changes: 0 additions & 32 deletions build_tools/preseed_home.py

This file was deleted.

0 comments on commit 1b7c572

Please sign in to comment.