Skip to content
Snippets Groups Projects
Commit 63d6d734 authored by Igor Kropochev's avatar Igor Kropochev
Browse files

Merge branch 'features-6175' into 'master'

features-6175

See merge request cellframe/prod_build_cellframe-node!39
parents 1e3055f5 97f5bc6d
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,15 @@ reconfigure|configure)
db_input critical cellframe-node/backbone_node_type || true
db_go || true
fi
db_input critical cellframe-node/enable_python_plugins || true
db_go || true
db_get cellframe-node/enable_python_plugins
if [ "$RET" = "true" ]; then
db_input critical cellframe-node/python_plugins_path || true
db_go || true
fi
;;
*)
echo "config called with unknown argument \`$1'" >&2
......
......@@ -61,7 +61,6 @@ sed -i "s/{NOTIFY_SRV_ADDR}/$RET/g" $DAP_CFG || true
db_get cellframe-node/notify_srv_port || true
sed -i "s/{NOTIFY_SRV_PORT}/$RET/g" $DAP_CFG || true
# Init subzero
NET_NAME="subzero"
......@@ -149,6 +148,15 @@ fi
mkdir -p $DAP_PREFIX/var/log || true
mkdir -p $DAP_PREFIX/var/plugins || true
#Set up Python plugins
db_get cellframe-node/enable_python_plugins || true
if [ "$RET" = "true" ]; then
sed -i 's/#\[plugins\]/\[plugins\]/g' $DAP_CFG || true
sed -i 's/#py_load=.*/py_load=true/g' $DAP_CFG || true
db_get cellframe-node/python_plugins_path || true
sed -i "s|#py_path=.*|py_path=$RET|g" $DAP_CFG || true
echo "[*] Enabled Python plugins"
fi
cat /etc/passwd| grep cellframe-node || adduser --system --no-create-home --group --home /opt/cellframe-node cellframe-node || true
......
......@@ -3,7 +3,7 @@ Default: false
Choices: true, false
Type: select
Description: Auto online
Bring up links automaticly and go to the ONLINE network state
Bring up links automatically and go to ONLINE network state
Template: cellframe-node/debug_mode
Default: false
......@@ -23,7 +23,7 @@ Template: cellframe-node/server_port
Default: 8079
Type: string
Description: Server port
Server port to listen on, recomended 8079
Server port to listen on, recommended 8079
Template: cellframe-node/server_addr
Default: 0.0.0.0
......@@ -56,11 +56,11 @@ Default: full
Choices: full, light, master, archive, root
Description: SubZero: Node role
Select node role:.
Light - syncronize only local wallets
full - sync all its cell
master - allow to store values in chains and take comission, sync all shards that will need to be synced
Light - Synchronize only local wallets
full - Sync all its cell
master - Allow to store values in chains and take comission, sync all shards that will need to be synced
archive - Sync all the network
root - Special predefined root nodes, usualy produces zerochain and act like archive as well
root - Special predefined root nodes, usually produces zerochain and acts like archive as well
Template: cellframe-node/mileena_enabled
Default: true
......@@ -75,11 +75,11 @@ Default: full
Choices: full, light, master, archive, root
Description: Mileena: Node role
Select node role:.
Light - syncronize only local wallets
full - sync all its cell
master - allow to store values in chains and take comission, sync all shards that will need to be synced
Light - Synchronize only local wallets
full - Sync all its cell
master - Allow to store values in chains and take comission, sync all shards that will need to be synced
archive - Sync all the network
root - Special predefined root nodes, usualy produces zerochain and act like archive as well
root - Special predefined root nodes, usually produces zerochain and acts like archive as well
Template: cellframe-node/kelvpn_minkowski_enabled
Default: true
......@@ -94,18 +94,18 @@ Default: full
Choices: full, light, master, archive, root
Description: Kelvpn Minkowski: Node role
Select node role:.
Light - syncronize only local wallets
full - sync all its cell
master - allow to store values in chains and take comission, sync all shards that will need to be synced
Light - Synchronize only local wallets
full - Sync all its cell
master - Allow to store values in chains and take comission, sync all shards that will need to be synced
archive - Sync all the network
root - Special predefined root nodes, usualy produces zerochain and act like archive as well
root - Special predefined root nodes, usually produces zerochain and acts like archive as well
Template: cellframe-node/backbone_enabled
Default: true
Choices: true, false
Type: select
Description: Backbone: Enable network
Subzero Testnet: Enable network auto load on start
Backbone Mainnet: Enable network auto load on start
Template: cellframe-node/backbone_node_type
Type: select
......@@ -113,8 +113,21 @@ Default: full
Choices: full, light, master, archive, root
Description: Backbone: Node role
Select node role:.
Light - syncronize only local wallets
full - sync all its cell
master - allow to store values in chains and take comission, sync all shards that will need to be synced
Light - Synchronize only local wallets
full - Sync all its cell
master - Allow to store values in chains and take comission, sync all shards that will need to be synced
archive - Sync all the network
root - Special predefined root nodes, usualy produces zerochain and act like archive as well
root - Special predefined root nodes, usually produces zerochain and acts like archive as well
Template: cellframe-node/enable_python_plugins
Default: false
Choices: true, false
Type: select
Description: Python plugins: Enable Python plugins
Python plugins: Enable Python plugins
Template: cellframe-node/python_plugins_path
Default: /opt/cellframe-node/var/lib/plugins
Type: string
Description: Python plugins path
Path for Python plugins
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment