This repository has been archived on 2021-08-31. You can view files and clone it, but cannot push or open issues or pull requests.
mattermost/app/docker-entry.sh
Yi EungJun 2d908b3cca Fix a bug that config.json is not created
Do not copy config.json into /matteronst/config directly because:

> Changes to a data volume will not be included when you update an image.
>
> -- https://docs.docker.com/engine/userguide/dockervolumes/

Instead copy config.template.json into the root and generate
/mattermost/config/config.json from the file.
2015-12-04 18:08:13 +09:00

11 lines
281 B
Bash

#!/bin/bash
echo Starting Platform
config=/mattermost/config/config.json
if [ ! -f $config ]; then
cp /config.template.json $config
sed -Ei "s/PG_ADDR/$PG_PORT_5432_TCP_ADDR/" $config
sed -Ei "s/PG_PORT/$PG_PORT_5432_TCP_PORT/" $config
fi
cd /mattermost/bin
./platform