snac2/examples/docker-entrypoint.sh
default 5b7a22e5b0 Updated examples/docket-entrypoint.sh.
snac init now prompts for an optional admin email address.
2023-05-05 12:58:54 +02:00

7 lines
216 B
Bash
Executable file

#! /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
snac adduser /data/data testuser
fi
SSLKEYLOGFILE=/data/key snac httpd /data/data