Skip to content
Snippets Groups Projects
Commit 480fe81d authored by Aleksandr Vodianov's avatar Aleksandr Vodianov
Browse files

add subzero

parent 765ecc3a
No related merge requests found
...@@ -87,6 +87,27 @@ if [ "$RET" = "true" ]; then ...@@ -87,6 +87,27 @@ if [ "$RET" = "true" ]; then
echo "[*] Enabled kelvin testnet" echo "[*] Enabled kelvin testnet"
fi fi
# Init subzero
NET_NAME="subzero"
db_get cellframe-node/subzero_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/subzero_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
......
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