From: Robbe Haesendonck Date: Thu, 23 Nov 2023 11:03:36 +0000 (+0100) Subject: Fixing CI tests for install-no-superuser X-Git-Tag: v4.4.0~44 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/638b40c3ec52631dd3e95e3eb5df0c0ec602cfca Fixing CI tests for install-no-superuser --- diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index ff6c91d2..57e795e1 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -382,9 +382,10 @@ jobs: ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone shell: bash - - name: Setup import user + - name: Setup database users run: | useradd -m nominatim + useradd -m 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 @@ -437,7 +438,9 @@ jobs: 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 + 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 \ No newline at end of file + working-directory: /home/nominatim/nominatim-project + shell: sudo -Hu osm-import bash --noprofile --norc -eo pipefail {0} \ No newline at end of file