blob: d198bf20c7672684457e956b260effb169110658 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#! /bin/sh
if [ -n "$TZ" ] ; then
ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime \
&& echo "$TZ" > /etc/timezone
fi
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
|