created structure for configuring services inside a common docker container so the configuration process is os-independant

This commit is contained in:
jash
2018-10-04 00:30:30 +02:00
committed by kexkey
parent 3a4eed516b
commit acb777db90
7 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/sh
# TODO: config entry for persistent volume of bitcoind
dialog --colors --textbox trace.sh 40 80

View File

@@ -0,0 +1,15 @@
#!/bin/sh
trace()
{
if [ -n "${TRACING}" ]; then
echo "[$(date +%Y-%m-%dT%H:%M:%S%z)] ${1}" > /dev/stderr
fi
}
trace_rc()
{
if [ -n "${TRACING}" ]; then
echo "[$(date +%Y-%m-%dT%H:%M:%S%z)] Last return code: ${1}" > /dev/stderr
fi
}