snac2/examples/docker-entrypoint.sh

8 lines
212 B
Bash
Raw Normal View History

2022-12-14 13:46:16 +03:00
#! /bin/sh
if [ ! -e /data/data/server.json ]
then
2022-12-14 13:46:16 +03: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 13:46:16 +03:00
SSLKEYLOGFILE=/data/key snac httpd /data/data