mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-02-07 13:34:20 +01:00
fixed indentation
This commit is contained in:
@@ -4,27 +4,27 @@ const featureCondition = function(props) {
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
name: function() {
|
||||
return name;
|
||||
},
|
||||
prompts: function( utils ) {
|
||||
return [{
|
||||
when: featureCondition,
|
||||
type: 'confirm',
|
||||
name: 'bitcoin_prune',
|
||||
default: utils._getDefault( 'bitcoin_prune' ),
|
||||
message: 'Run bitcoin node in prune mode?'+'\n',
|
||||
},
|
||||
{
|
||||
when: featureCondition,
|
||||
type: 'input',
|
||||
name: 'bitcoin_external_ip',
|
||||
default: utils._getDefault( 'bitcoin_external_ip' ),
|
||||
validate: utils._ipValidator,
|
||||
message: 'What external ip does your bitcoin full node have?'+'\n',
|
||||
}];
|
||||
},
|
||||
env: function( props ) {
|
||||
return 'VAR0=VALUE0\nVAR1=VALUE1'
|
||||
}
|
||||
name: function() {
|
||||
return name;
|
||||
},
|
||||
prompts: function( utils ) {
|
||||
return [{
|
||||
when: featureCondition,
|
||||
type: 'confirm',
|
||||
name: 'bitcoin_prune',
|
||||
default: utils._getDefault( 'bitcoin_prune' ),
|
||||
message: 'Run bitcoin node in prune mode?'+'\n',
|
||||
},
|
||||
{
|
||||
when: featureCondition,
|
||||
type: 'input',
|
||||
name: 'bitcoin_external_ip',
|
||||
default: utils._getDefault( 'bitcoin_external_ip' ),
|
||||
validate: utils._ipValidator,
|
||||
message: 'What external ip does your bitcoin full node have?'+'\n',
|
||||
}];
|
||||
},
|
||||
env: function( props ) {
|
||||
return 'VAR0=VALUE0\nVAR1=VALUE1'
|
||||
}
|
||||
};
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"optOut": true
|
||||
"optOut": true
|
||||
}
|
||||
@@ -8,9 +8,9 @@
|
||||
# commands not needed for runtime
|
||||
|
||||
cyphernodeconf_configure() {
|
||||
local current_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||
local current_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||
|
||||
docker run -v $current_path/../data:/data \
|
||||
--log-driver=none\
|
||||
--rm -it cyphernodeconf:latest
|
||||
docker run -v $current_path/../data:/data \
|
||||
--log-driver=none\
|
||||
--rm -it cyphernodeconf:latest
|
||||
}
|
||||
@@ -3,8 +3,8 @@
|
||||
. ./trace.sh
|
||||
|
||||
build_docker_image() {
|
||||
|
||||
trace "building docker image: $1 with tag $2:latest"
|
||||
docker build $1 -t $2:latest
|
||||
|
||||
trace "building docker image: $1 with tag $2:latest"
|
||||
docker build $1 -t $2:latest
|
||||
|
||||
}
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
|
||||
trace()
|
||||
{
|
||||
if [ -n "${TRACING}" ]; then
|
||||
echo "[$(date +%Y-%m-%dT%H:%M:%S%z)] ${1}" > /dev/stderr
|
||||
fi
|
||||
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
|
||||
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