diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-07-02 17:47:21 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-07-02 17:47:24 +0200 |
commit | 6b274b95fc357d9007b77a87d862dace60409a32 (patch) | |
tree | 2267ddd1bcf19cb2083ffa9d535ea307a7e14503 | |
parent | edca4f88a653cc688bc1c46611a9f0bc880637e2 (diff) |
sql/Makefile: Create empty /var/lib/osmocom directory at install timepespin/debian
Otherwise osmo-hlr is unable to start correctly.
Change-Id: I1233fc9b3dc685561f79a34e1c32c459dc1aa685
-rw-r--r-- | debian/osmo-hlr.install | 1 | ||||
-rw-r--r-- | sql/Makefile.am | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/osmo-hlr.install b/debian/osmo-hlr.install index 825e65c..7991522 100644 --- a/debian/osmo-hlr.install +++ b/debian/osmo-hlr.install @@ -3,3 +3,4 @@ /usr/share/doc/osmo-hlr/sql/hlr.sql /usr/share/doc/osmo-hlr/sql/hlr_data.sql /usr/share/doc/osmo-hlr/examples/osmo-hlr.cfg +/var/lib/osmocom diff --git a/sql/Makefile.am b/sql/Makefile.am index 75be70e..e84943b 100644 --- a/sql/Makefile.am +++ b/sql/Makefile.am @@ -5,3 +5,10 @@ EXTRA_DIST = \ sqldir = $(docdir)/sql sql_DATA = $(srcdir)/hlr.sql $(srcdir)/hlr_data.sql + + +install-data-local: + $(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/osmocom + +uninstall-hook: + rm -rf $(DESTDIR)$(localstatedir)/lib/osmocom |