snac2/examples/docker-entrypoint.sh

8 lines
216 B
Bash
Raw Permalink Normal View History

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