Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
prod_build_cellframe-node
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
prod_build_cellframe-node
Commits
7f91e6c2
Commit
7f91e6c2
authored
3 years ago
by
dmitriy.gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
...
parent
971a8dda
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
linux/debian/essentials/postinst
+9
-7
9 additions, 7 deletions
linux/debian/essentials/postinst
with
9 additions
and
7 deletions
linux/debian/essentials/postinst
+
9
−
7
View file @
7f91e6c2
...
@@ -25,20 +25,22 @@ fi
...
@@ -25,20 +25,22 @@ fi
cat
$DAP_CFG_TPL
>
$DAP_CFG
||
true
cat
$DAP_CFG_TPL
>
$DAP_CFG
||
true
sed
-i
"s/{PREFIX}/
$RET
/g"
$DAP_PREFIX
||
true
db_get cellframe-node/debug_mode
||
true
db_get cellframe-node/debug_mode
||
true
sed
-i
"s/{DEBUG_MODE}/
$RET
/"
$DAP_CFG
||
true
sed
-i
"s/{DEBUG_MODE}/
$RET
/
g
"
$DAP_CFG
||
true
db_get cellframe-node/auto_online
||
true
db_get cellframe-node/auto_online
||
true
sed
-i
"s/{AUTO_ONLINE}/
$RET
/"
$DAP_CFG
||
true
sed
-i
"s/{AUTO_ONLINE}/
$RET
/
g
"
$DAP_CFG
||
true
db_get cellframe-node/server_enabled
||
true
db_get cellframe-node/server_enabled
||
true
sed
-i
"s/{SERVER_ENABLED}/
$RET
/"
$DAP_CFG
||
true
sed
-i
"s/{SERVER_ENABLED}/
$RET
/
g
"
$DAP_CFG
||
true
db_get cellframe-node/server_port
||
true
db_get cellframe-node/server_port
||
true
sed
-i
"s/{SERVER_PORT}/
$RET
/"
$DAP_CFG
||
true
sed
-i
"s/{SERVER_PORT}/
$RET
/
g
"
$DAP_CFG
||
true
db_get cellframe-node/server_addr
||
true
db_get cellframe-node/server_addr
||
true
sed
-i
"s/{SERVER_ADDR}/
$RET
/"
$DAP_CFG
||
true
sed
-i
"s/{SERVER_ADDR}/
$RET
/
g
"
$DAP_CFG
||
true
# Init core testnet
# Init core testnet
...
@@ -58,7 +60,7 @@ if [ "$RET" = "true" ]; then
...
@@ -58,7 +60,7 @@ if [ "$RET" = "true" ]; then
cat
$DAP_CFG_NET_TPL
>
$DAP_NET_CFG
||
true
cat
$DAP_CFG_NET_TPL
>
$DAP_NET_CFG
||
true
db_get cellframe-node/core_t_node_type
||
true
db_get cellframe-node/core_t_node_type
||
true
NODE_TYPE
=
$RET
NODE_TYPE
=
$RET
sed
-i
"s/{NODE_TYPE}/
$NODE_TYPE
/"
$DAP_NET_CFG
||
true
sed
-i
"s/{NODE_TYPE}/
$NODE_TYPE
/
g
"
$DAP_NET_CFG
||
true
echo
"[*] Enabled core testnet"
echo
"[*] Enabled core testnet"
fi
fi
...
@@ -81,7 +83,7 @@ if [ "$RET" = "true" ]; then
...
@@ -81,7 +83,7 @@ if [ "$RET" = "true" ]; then
cat
$DAP_CFG_NET_TPL
>
$DAP_NET_CFG
||
true
cat
$DAP_CFG_NET_TPL
>
$DAP_NET_CFG
||
true
db_get cellframe-node/kelvin_testnet_node_type
||
true
db_get cellframe-node/kelvin_testnet_node_type
||
true
NODE_TYPE
=
$RET
NODE_TYPE
=
$RET
sed
-i
"s/{NODE_TYPE}/
$NODE_TYPE
/"
$DAP_NET_CFG
||
true
sed
-i
"s/{NODE_TYPE}/
$NODE_TYPE
/
g
"
$DAP_NET_CFG
||
true
echo
"[*] Enabled kelvin testnet"
echo
"[*] Enabled kelvin testnet"
fi
fi
...
...
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