mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-29 01:04:28 +01:00
created structure for configuring services inside a common docker container so the configuration process is os-independant
This commit is contained in:
7
install/bitcoind/script/configure.sh
Executable file
7
install/bitcoind/script/configure.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# TODO: config entry for persistent volume of bitcoind
|
||||
|
||||
dialog --colors --textbox trace.sh 40 80
|
||||
|
||||
|
||||
15
install/bitcoind/script/trace.sh
Normal file
15
install/bitcoind/script/trace.sh
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user