diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-12-07 17:32:07 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-11-27 18:01:17 +0100 |
commit | 849bfd0bef211da28e5a7047402c440af4f80a13 (patch) | |
tree | f2c4faa1884c5e5abf6290cb446a695b1ba4467a | |
parent | 7e2d3c7f4cf2dbfa677f6db17a7ada5131debf77 (diff) |
OsmoHLR: update section 'Bootstrap the Database'
Change-Id: I1b7b99cc77d8cd8cce42e7cf93f5e2cd3c2344db
-rw-r--r-- | doc/manuals/chapters/running.adoc | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/doc/manuals/chapters/running.adoc b/doc/manuals/chapters/running.adoc index 09388c0..44b66f2 100644 --- a/doc/manuals/chapters/running.adoc +++ b/doc/manuals/chapters/running.adoc @@ -41,23 +41,13 @@ arguments: === Bootstrap the Database -Before first launching OsmoHLR, you need to create a database, which can be -done with these commands: +If no database exists yet, OsmoHLR will automatically create and bootstrap a +database file with empty tables. If no `-l` command-line option is provided, +this database file will be created in the current working directory. ----- -mkdir -p /var/lib/osmocom -sqlite3 /var/lib/osmocom/hlr.db < /usr/share/doc/osmo-hlr/hlr.sql ----- - -Depending on your installation choices, you will probably find `hlr.sql` in one -of these locations: - -- `/usr/share/doc/osmo-hlr/hlr.sql` -- `/usr/local/share/doc/osmo-hlr/hlr.sql` -- in `osmo-hlr.git`'s source tree at `sql/hlr.sql` - -NOTE: At the time of writing, OsmoHLR does not create an initial empty database -automatically, like OsmoNITB did. This behavior may be added in the future. +Alternatively, you may use the `osmo-hlr-db-tool`, which is installed along +with `osmo-hlr`, to bootstrap an empty database, or to migrate subscriber data +from an old 'OsmoNITB' database. See `osmo-hlr-db-tool --help`. === Multiple instances |