mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-23 05:35:13 +03:00
Added new psql user for importing the data
This commit is contained in:
parent
667197a47e
commit
22204050f2
18
.github/workflows/ci-tests.yml
vendored
18
.github/workflows/ci-tests.yml
vendored
@ -305,10 +305,24 @@ jobs:
|
||||
run: nominatim admin --collect-os-info
|
||||
working-directory: /home/nominatim/nominatim-project
|
||||
|
||||
- name: Import
|
||||
- name: Prepare Database
|
||||
run: |
|
||||
nominatim import --prepare-database
|
||||
nominatim import --no-superuser --osm-file ../test.pbf
|
||||
working-directory: /home/nominatim/nominatim-project
|
||||
|
||||
- name: Create import user
|
||||
run: |
|
||||
sudo -u postgres createuser -S osm-import -P osm-import
|
||||
working-directory: /home/nominatim/nominatim-project
|
||||
|
||||
- name: Grant import user rights
|
||||
run: |
|
||||
sudo -u postgres psql -c "GRANT INSERT, UPDATE ON ALL TABLES IN SCHEMA public TO \"osm-import\";"
|
||||
working-directory: /home/nominatim/nominatim-project
|
||||
|
||||
- name: Run import
|
||||
run: |
|
||||
NOMINATIM_DATABASE_DSN="pgsql:dbname=nominatim;user=osm-import;password=osm-import" nominatim import --continue import-from-file --osm-file ../test.pbf
|
||||
working-directory: /home/nominatim/nominatim-project
|
||||
|
||||
- name: Import special phrases
|
||||
|
Loading…
Reference in New Issue
Block a user