]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Ensure DH parameters are created before stopping dovecot as root (#3927)
authorNick Porter <nick@portercomputing.co.uk>
Wed, 10 Feb 2021 16:44:18 +0000 (16:44 +0000)
committerGitHub <noreply@github.com>
Wed, 10 Feb 2021 16:44:18 +0000 (16:44 +0000)
.github/workflows/ci.yml

index 4c502b3440bc00075e55747925a2b5ea5c088313..4a2c29df22fbf704171ae802f4fc07cf0f5d0b48 100644 (file)
@@ -270,10 +270,16 @@ jobs:
         sudo systemctl stop slapd
         sudo aa-complain /usr/sbin/slapd
 
+    # The sleep before stopping dovecot gives it time to produce the DH parameters file.
+    # Test dovecot instances don't run as root so if this file doesn't exist then there
+    # are permissions issues and the SSL instance of dovecot doesn't work
     - name: Install fixture (dovecot imapd)
       if: ${{ matrix.env.TEST_TYPE == 'fixtures' }}
       run: |
         sudo apt-get install -y --no-install-recommends dovecot-imapd
+        while [ ! -f /var/lib/dovecot/ssl-parameters.dat ] ; do
+            sleep 1
+        done
         sudo systemctl stop dovecot
         sudo aa-complain /usr/sbin/dovecot