mirror of
https://github.com/elyby/chrly.git
synced 2024-12-24 05:59:54 +05:30
16 lines
327 B
Bash
Executable File
16 lines
327 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" = "token" ] || [ "$1" = "version" ]; then
|
|
set -- minecraft-skinsystem "$@"
|
|
fi
|
|
|
|
exec "$@"
|