Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
burrow
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hang Yu
burrow
Commits
0c438da5
Commit
0c438da5
authored
9 years ago
by
Ethan Buchman
Browse files
Options
Downloads
Patches
Plain Diff
little bash fixes
parent
82a86cdc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DOCKER/chain_register.sh
+5
-1
5 additions, 1 deletion
DOCKER/chain_register.sh
DOCKER/start.sh
+2
-2
2 additions, 2 deletions
DOCKER/start.sh
with
7 additions
and
3 deletions
DOCKER/chain_register.sh
+
5
−
1
View file @
0c438da5
...
...
@@ -4,7 +4,7 @@ echo "registering $CHAIN_ID in the grand registry of marmot mayhem and marmalade
# lay the genesis
# if it exists, just overwrite the chain id
if
[
!
-f
$CHAIN_DIR
/genesis.json
]
;
then
if
[
!
-f
"
$CHAIN_DIR
/genesis.json
"
]
;
then
"Could not find genesis file in
$CHAIN_DIR
. Did you run
`
eris chains new
$CHAIN_ID
`
?"
exit
1
fi
...
...
@@ -22,9 +22,13 @@ echo $RES | grep "Incorrect"
if0Exit
"
$RES
"
"Error registering genesis with etcb_testnet"
echo
$RES
echo
"successfully registered genesis on etcb chain"
# register the seed/s
RES
=
`
mintx name
--pubkey
=
$PUBKEY
--name
=
"
${
CHAIN_ID
}
/seeds"
--data
=
"
$NEW_P2P_SEEDS
"
--amt
=
10000
--fee
=
0
--sign
--broadcast
--chainID
=
$ETCB_CHAIN_ID
--wait
`
ifExit
"
$RES
"
"Error registering seeds with etcb_testnet"
echo
$RES
|
grep
"Incorrect"
if0Exit
"
$RES
"
"Error registering seeds with etcb_testnet"
echo
$RES
echo
"successfully registered seed on etcb chain"
This diff is collapsed.
Click to expand it.
DOCKER/start.sh
+
2
−
2
View file @
0c438da5
#! /bin/bash
ifExit
(){
if
[
$?
-ne
0
]
;
then
if
[
[
$?
!=
0
]
]
;
then
echo
"ifExit"
echo
"
$1
"
for
var
in
"
$@
"
...
...
@@ -13,7 +13,7 @@ ifExit(){
}
if0Exit
(){
if
[
$?
-e
0
]
;
then
if
[
[
$?
==
0
]
]
;
then
echo
"if0Exit"
echo
"
$1
"
for
var
in
"
$@
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment