]> git.openstreetmap.org Git - nominatim.git/commitdiff
Added changing permissions of nominatim-project dir
authorRobbe Haesendonck <googleit@inuits.eu>
Thu, 23 Nov 2023 12:41:13 +0000 (13:41 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 7 Dec 2023 08:04:33 +0000 (09:04 +0100)
.github/workflows/ci-tests.yml

index 7ae385e0653ae11963646fc53a366d4decd08758..ff4594edaa3bdf43cc85269484e45ccf32e9c88c 100644 (file)
@@ -387,7 +387,6 @@ jobs:
                 useradd -m nominatim
                 useradd -m osm-import
                 echo 'nominatim   ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/nominatim
                 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 "/home/nominatim/Nominatim/vagrant/Install-on-${OS}.sh no $INSTALL_MODE" > /home/nominatim/vagrant.sh
             shell: bash
             env:
                 echo "/home/nominatim/Nominatim/vagrant/Install-on-${OS}.sh no $INSTALL_MODE" > /home/nominatim/vagrant.sh
             shell: bash
             env:
@@ -435,6 +434,10 @@ jobs:
                 sudo -u postgres psql -c "GRANT INSERT, UPDATE ON ALL TABLES IN SCHEMA public TO \"osm-import\";"
             working-directory: /home/nominatim/nominatim-project
 
                 sudo -u postgres psql -c "GRANT INSERT, UPDATE ON ALL TABLES IN SCHEMA public TO \"osm-import\";"
             working-directory: /home/nominatim/nominatim-project
 
+          - name: Change nominatim directory ownership
+            run: |
+                sudo chown -R osm-import /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
           - 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