snac2/examples/docker-entrypoint.sh

8 lines
212 B
Bash
Raw Permalink Normal View History

2022-12-14 10:46:16 +00:00
#! /bin/sh
if [ ! -e /data/data/server.json ]
then
2022-12-14 10:46:16 +00:00
echo -ne "0.0.0.0\r\n8001\r\nlocalhost\r\n\r\n" | snac init /data/data
snac adduser /data/data testuser
fi
2022-12-14 10:46:16 +00:00
SSLKEYLOGFILE=/data/key snac httpd /data/data