1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-07 07:56:12 +00:00
2018-04-16 12:18:10 +02:00

17 lines
388 B
Bash

#!/bin/bash
set -eu # unset variables are errors & non-zero return values exit the whole script
mkdir -p /tmp/gateway /var/run/kopano
echo "Configure gateway" | ts
/usr/bin/python3 /kopano/configure.py
echo "Set config ownership" | ts
chown -R kopano:kopano /kopano/data /run /tmp
echo "Clean old pid files and sockets" | ts
rm -f /var/run/kopano/*
exec /usr/sbin/kopano-gateway -F