matrix-appservice-kakaotalk/node/docker-run.sh

17 lines
446 B
Bash
Raw Permalink Normal View History

2022-04-29 09:54:43 -04:00
#!/bin/sh
if [ ! -w . ]; then
echo "Please ensure the /data volume of this container is writable for user:group $UID:$GID." >&2
exit
fi
if [ ! -f /data/config.json ]; then
cp example-config-docker.json /data/config.json
echo "Didn't find a config file."
echo "Copied default config file to /data/config.json"
echo "Modify that config file to your liking, then restart the container."
exit
fi
node src/main.js --config /data/config.json