15 lines
245 B
Bash
Executable file
15 lines
245 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ ! -r "/honk-data/honk.db" ]; then
|
|
set -u
|
|
(
|
|
echo "$HONK_USERNAME"
|
|
echo "$HONK_PASSWORD"
|
|
echo "${HONK_LISTEN_ADDR:-"0.0.0.0:8080"}"
|
|
echo "${HONK_SERVER_HOSTNAME}"
|
|
) | honk -datadir "/honk-data" init
|
|
set +u
|
|
fi
|
|
|
|
exec $*
|
|
|