X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/cff05394a10d77ef54d6eb757680a3bce21899a9..c41f2fed2133668dc3179813261d39d3ff69cbdd:/.github/workflows/ci-tests.yml diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 7ae385e0..42c03edc 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -382,12 +382,10 @@ jobs: ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone shell: bash - - name: Setup database users + - name: Setup import user run: | useradd -m nominatim - useradd -m osm-import - echo 'nominatim ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/nominatim - echo 'osm-import ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/osm-import + echo 'nominatim ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/nominiatim echo "/home/nominatim/Nominatim/vagrant/Install-on-${OS}.sh no $INSTALL_MODE" > /home/nominatim/vagrant.sh shell: bash env: @@ -437,11 +435,9 @@ jobs: - 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 - shell: sudo -Hu osm-import bash --noprofile --norc -eo pipefail {0} - name: Check full import run: nominatim admin --check-database - working-directory: /home/nominatim/nominatim-project - shell: sudo -Hu osm-import bash --noprofile --norc -eo pipefail {0} \ No newline at end of file + working-directory: /home/nominatim/nominatim-project \ No newline at end of file