summaryrefslogtreecommitdiff
path: root/ucs-3.x/10-permissions-kolab.conf.sh
blob: bcc8f5d9f9e25848e28a363a86ae97b8bb27c887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

if [ ! -e "/etc/kolab/kolab.conf" ]; then
    echo "SKIP: /etc/kolab/kolab.conf does not exist"
    exit 1
fi

if [ $(find /etc/kolab/kolab.conf -user listener -group nogroup | wc -l) -eq 0 ]; then
    echo "FAIL: Permissions on /etc/kolab/kolab.conf incorrect: $(ls -l /etc/kolab/kolab.conf)"
    exit 1
else
    echo "OK: Correct permissions on /etc/kolab/kolab.conf"
fi

exit 0