diff --git a/.gitignore b/.gitignore index 3edc8023..5976e464 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ py3env/ __pycache__/ config-personal.txt +cards.db diff --git a/README.md b/README.md index 6bf919f2..30530920 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ __If you already had a backup file `cards.db`. Run following command:__ ``: is the full path contains `cards.db`. Example: `/home/tinpee/cs-flash-cards/db`, and `cards.db` is inside this folder. -For convenient, if you don't have `cards.db`, this container will auto copy a new one from `cards-jwasham.db`. So you don't need to `initdb`. +For convenience, if you don't have `cards.db`, this container will auto copy a new one from `cards-empty.db`. ### How to backup data ? We just need store `cards.db` file, and don't need any sql command. diff --git a/cards.db b/cards-empty.db similarity index 100% rename from cards.db rename to cards-empty.db diff --git a/entrypoint.sh b/entrypoint.sh index 82bb0d40..7deaf0e6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,7 +1,7 @@ #!/bin/bash if [ ! -f /src/db/cards.db ]; then - cp cards-jwasham.db /src/db/cards.db + cp cards-empty.db /src/db/cards.db fi export CARDS_SETTINGS=/src/config.txt