]> git.ipfire.org Git - location/libloc.git/commitdiff
Create the database with read-only permissions for everyone
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Oct 2022 10:26:25 +0000 (10:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Oct 2022 10:26:25 +0000 (10:26 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am

index 5db3a511a996309d087c3599c139f64a78ad4329..049832f46f242caf297cae415d3b1591c62d7e91 100644 (file)
@@ -314,6 +314,9 @@ dist_database_DATA = \
        data/database.db \
        data/signing-key.pem
 
+install-data-hook:
+       chmod 444 $(DESTDIR)$(databasedir)/database.db
+
 .PHONY: update-database
 update-database:
        curl https://location.ipfire.org/databases/1/location.db.xz | xz -d > data/database.db