1name: Setup
2runs:
3  using: composite
4  steps:
5    - shell: bash
6      run: |
7        set -x
8
9        sudo service slapd start
10        docker exec sql1 /opt/mssql-tools18/bin/sqlcmd -S 127.0.0.1 -U SA -C -P "<YourStrong@Passw0rd>" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;"
11        sudo locale-gen de_DE
12
13        ./.github/scripts/setup-slapd.sh
14
15        sudo cp ext/snmp/tests/snmpd.conf /etc/snmp
16        sudo cp ext/snmp/tests/bigtest /etc/snmp
17        sudo service snmpd restart
18
19        sudo groupadd -g 5000 vmail
20        sudo useradd -m -d /var/vmail -s /bin/false -u 5000 -g vmail vmail
21        sudo cp ext/imap/tests/setup/dovecot.conf /etc/dovecot/dovecot.conf
22        sudo cp ext/imap/tests/setup/dovecotpass /etc/dovecot/dovecotpass
23        sudo service dovecot restart
24