[MERGED] osmo-gsm-manuals[master]: OsmoHLR: update section 'Bootstrap the Database'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Dec 7 22:32:15 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: OsmoHLR: update section 'Bootstrap the Database'
......................................................................


OsmoHLR: update section 'Bootstrap the Database'

Change-Id: I1b7b99cc77d8cd8cce42e7cf93f5e2cd3c2344db
---
M OsmoHLR/chapters/running.adoc
1 file changed, 6 insertions(+), 16 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/OsmoHLR/chapters/running.adoc b/OsmoHLR/chapters/running.adoc
index 09388c0..44b66f2 100644
--- a/OsmoHLR/chapters/running.adoc
+++ b/OsmoHLR/chapters/running.adoc
@@ -41,23 +41,13 @@
 
 === 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
 

-- 
To view, visit https://gerrit.osmocom.org/5225
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1b7b99cc77d8cd8cce42e7cf93f5e2cd3c2344db
Gerrit-PatchSet: 2
Gerrit-Project: osmo-gsm-manuals
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list