Files
sxchnge/infra/local/scripts/start-service.sh
T

11 lines
350 B
Bash
Executable File

#!/bin/sh
set -eu
umask 077
if [ "$SXCHNGE_SERVICE" = notifications ]; then
printf '%s\n' "$EMAIL_CONFIG" > /run/sxchnge/email.yml
unset EMAIL_CONFIG
cat /etc/sxchnge/notifications.yml /run/sxchnge/email.yml > /run/sxchnge/config.yml
exec service -config.file=/run/sxchnge/config.yml
fi
exec service -config.file=/etc/sxchnge/bff.yml