summaryrefslogtreecommitdiffstats
path: root/03-guam/entrypoint.sh
blob: ebac8a82edabf5d3d57d25696fb04645c12caa3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

. /functions.sh

check_var \
    KOLAB_IMAPF_EXT_SERVICE_HOST \
    || exit 1

if [ ! -f "/etc/pki/tls/private/localhost.pem" ]; then
    pushd /etc/pki/tls/certs/
    ./make-dummy-cert ../private/localhost.pem
    popd
fi

sed -r -i \
    -e "s/host, \"127\.0\.0\.1\"/host, \"${KOLAB_IMAPF_EXT_SERVICE_HOST}\"/g" \
    /etc/guam/sys.config

$@