Skip to content
Snippets Groups Projects
Commit f5271737 authored by Roman Khlopkov's avatar Roman Khlopkov 🔜
Browse files

Merge branch 'support-5678' into 'master'

support-5678

See merge request cellframe/prod_build_cellframe-node!24
parents ef7f61b9 8e3d4d22
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,12 @@ reconfigure|configure) ...@@ -38,6 +38,12 @@ reconfigure|configure)
db_input critical cellframe-node/subzero_node_type || true db_input critical cellframe-node/subzero_node_type || true
db_go || true db_go || true
db_input critical cellframe-node/kelvpn_minkowski_enabled || true
db_go || true
db_input critical cellframe-node/kelvpn_minkowski_type || true
db_go || true
;; ;;
*) *)
echo "config called with unknown argument \`$1'" >&2 echo "config called with unknown argument \`$1'" >&2
......
...@@ -121,6 +121,27 @@ if [ "$RET" = "true" ]; then ...@@ -121,6 +121,27 @@ if [ "$RET" = "true" ]; then
echo "[*] Enabled subzero" echo "[*] Enabled subzero"
fi fi
# Init subzero
NET_NAME="kelvpn-minkowski"
db_get cellframe-node/kelvpn_minkowski_enabled || true
if [ "$RET" = "true" ]; then
DAP_CFG_NET="$DAP_PREFIX/etc/network/$NET_NAME.cfg"
DAP_CFG_NET_TPL="$DAP_PREFIX/share/configs/network/$NET_NAME.cfg.tpl"
DAP_NET_CFG=""
if [ -e "$DAP_CFG_NET" ]; then
DAP_NET_CFG="$DAP_PREFIX/etc/network/$NET_NAME.cfg.dpkg-new"
else
DAP_NET_CFG="$DAP_PREFIX/etc/network/$NET_NAME.cfg"
fi
cat $DAP_CFG_NET_TPL > $DAP_NET_CFG || true
db_get cellframe-node/kelvpn_minkowski_node_type || true
NODE_TYPE=$RET
sed -i "s/{NODE_TYPE}/$NODE_TYPE/g" $DAP_NET_CFG || true
echo "[*] Enabled subzero"
fi
mkdir -p $DAP_PREFIX/var/log || true mkdir -p $DAP_PREFIX/var/log || true
mkdir -p $DAP_PREFIX/var/plugins || true mkdir -p $DAP_PREFIX/var/plugins || true
......
...@@ -88,4 +88,24 @@ Description: SubZero: Node role ...@@ -88,4 +88,24 @@ Description: SubZero: Node role
full - sync all its cell full - sync all its cell
master - allow to store values in chains and take comission, sync all shards that will need to be synced master - allow to store values in chains and take comission, sync all shards that will need to be synced
archive - Sync all the network archive - Sync all the network
root - Special predefined root nodes, usualy produces zerochain and act like archive as well root - Special predefined root nodes, usualy produces zerochain and act like archive as well
Template: cellframe-node/kelvpn_minkowski_enabled
Default: true
Choices: true, false
Type: select
Description: Kelvpn Minkowski: Enable network
Kelvin Testnet: Enable network auto load on start
Template: cellframe-node/kelvpn_minkowski_node_type
Type: select
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
archive - Sync all the network
root - Special predefined root nodes, usualy produces zerochain and act like archive as well
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