- name: Create import user
run: |
- sudo -u postgres createuser -S osm-import -P osm-import
+ sudo -u postgres createuser -S osm-import
+ sudo -u postgres psql -c "ALTER USER \"osm-import\" WITH PASSWORD 'osm-import';"
working-directory: /home/nominatim/nominatim-project
- name: Grant import user rights
- 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
+ NOMINATIM_DATABASE_DSN="pgsql:host=127.0.0.1;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: Check full import