diff options
-rw-r--r-- | api/routes/getNodeInfo/index.js | 2 | ||||
-rwxr-xr-x | bin/ak-config | 12 | ||||
-rwxr-xr-x | bin/ak-zchain-rebase | 2 | ||||
-rwxr-xr-x | bin/ak-zchain-reset | 2 | ||||
-rwxr-xr-x | lib/_ak_gpg | 2 | ||||
-rwxr-xr-x | lib/_ak_zblock | 2 |
6 files changed, 11 insertions, 11 deletions
diff --git a/api/routes/getNodeInfo/index.js b/api/routes/getNodeInfo/index.js index d87a3e7..877b55a 100644 --- a/api/routes/getNodeInfo/index.js +++ b/api/routes/getNodeInfo/index.js @@ -3,7 +3,7 @@ const akLogMessage = require('../../lib/akLogMessage'); module.exports = (req, res) => { akLogMessage('INFO', `Incoming from [${req.socket._peername.address}]:${req.socket._peername.port} @ ${req.get('host')}${req._parsedOriginalUrl.pathname}`); - const command = spawn("ak-config", ["get-published"]); + const command = spawn("ak-config", ["--get-published"]); var buffer = ""; command.stdout.on("data", data => { buffer = buffer + data; diff --git a/bin/ak-config b/bin/ak-config index 49c6217..eb8a836 100755 --- a/bin/ak-config +++ b/bin/ak-config @@ -4,11 +4,11 @@ ## ## -h, --help Show this help screen ## -## show Show current configuration (from FileSystem) +## --show Show current configuration (from FileSystem) ## -## publish Publish current configuration +## --publish Publish current configuration ## -## get-published Get published ak-config (from IPFS) +## --get-published Get published ak-config (from IPFS) ## fullprogrampath="$(realpath $0)" PROGRAM="$(basename $0)" @@ -59,9 +59,9 @@ _ak_config_published(){ if [ ! -z $1 ]; then case $1 in --help| -h) _ak_usage;exit;; - show) _ak_config_show;exit;; - publish) _ak_config_publish;exit;; - get-published) _ak_config_published;exit;; + --show) _ak_config_show;exit;; + --publish) _ak_config_publish;exit;; + --get-published) _ak_config_published;exit;; *) _ak_usage;exit;; esac else diff --git a/bin/ak-zchain-rebase b/bin/ak-zchain-rebase index f0687eb..b4522cf 100755 --- a/bin/ak-zchain-rebase +++ b/bin/ak-zchain-rebase @@ -42,7 +42,7 @@ rebase (){ _ak_ipfs_name_publish --key=zchain /ipfs/$(cat $AK_ZLATEST) if [ $? != 0 ]; then exit 1; fi - ak-config publish + ak-config --publish if [ "$?" -ne 0 ] then logit "ERROR" "Could not publish new configuration" diff --git a/bin/ak-zchain-reset b/bin/ak-zchain-reset index 4d9e099..24e670b 100755 --- a/bin/ak-zchain-reset +++ b/bin/ak-zchain-reset @@ -41,7 +41,7 @@ reset (){ _ak_ipfs_name_publish --key=zchain /ipfs/$(cat $ZLATEST) if [ $? != 0 ]; then exit 1; fi - ak-config publish + ak-config --publish if [ "$?" -ne 0 ] then logit "ERROR" "Could not publish new configuration" diff --git a/lib/_ak_gpg b/lib/_ak_gpg index d8010b2..b74d411 100755 --- a/lib/_ak_gpg +++ b/lib/_ak_gpg @@ -26,7 +26,7 @@ _ak_gpg_key_import_from_file(){ } _ak_gpg_key_self_get_fingerprint_from_config(){ - ak-config show | jq -r '.gpg' + ak-config --show | jq -r '.gpg' } _ak_gpg_key_self_get_fingerprint(){ diff --git a/lib/_ak_zblock b/lib/_ak_zblock index cd4fa95..e1e6914 100755 --- a/lib/_ak_zblock +++ b/lib/_ak_zblock @@ -585,7 +585,7 @@ _ak_zblock_pack(){ logit "ERROR" "Could not copy $ZBLOCK to /zlatest" exit 1 fi - ak-config publish + ak-config --publish if [ $? -ne 0 ] then logit "ERROR" "Could not publish new configuration" |