diff --git a/init.sh b/init.sh index 078297b..4a2b254 100755 --- a/init.sh +++ b/init.sh @@ -112,9 +112,9 @@ if [ ! -f $WA_REPO/node_type.sh ]; then read -r init_as_master if [ "$init_as_master" == "yes" ]; then - echo "NODE_TYPE=master" > $WA_REPO/node_type.sh + echo "export NODE_TYPE=master" > $WA_REPO/node_type.sh else - echo "NODE_TYPE=worker" > $WA_REPO/node_type.sh + echo "export NODE_TYPE=worker" > $WA_REPO/node_type.sh fi fi