account/docker/entrypoint.sh

14 lines
406 B
Bash

#!/bin/sh
# this doesnt check game server specific certs, only static file paths
files='config.json certs/nex/datastore/secret.key certs/access/secret.key certs/access/aes.key certs/access/private.pem certs/access/public.pem'
for file in $files; do
if [ ! -f $file ]; then
echo "$PWD/$file file does not exist. Please mount and try again."
exit 1
fi
done
exec node src/server.js