mirror of
https://github.com/elyby/chrly.git
synced 2024-12-29 00:10:19 +05:30
eab7c6ecaa
Production Docker контейнер теперь использует alpine linux вместо пустого scratch В production Docker контейнер добавлен docker-entrypoint.sh, который автоматически создаёт конфиг по умолчанию.
16 lines
309 B
Bash
Executable File
16 lines
309 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
CONFIG="/etc/minecraft-skinsystem/config.yml"
|
|
|
|
if [ ! -f "$CONFIG" ]; then
|
|
mkdir -p $(dirname "${CONFIG}")
|
|
cp /usr/local/etc/minecraft-skinsystem/config.dist.yml "$CONFIG"
|
|
fi
|
|
|
|
if [ "$1" = "serve" ] || [ "$1" = "amqp-worker" ]; then
|
|
set -- minecraft-skinsystem "$@"
|
|
fi
|
|
|
|
exec "$@"
|