Skip to content

Commit 3650a7b

Browse files
Merge pull request #234 from imakowski/plugins
Allow users to select enable gateway interactively #112
2 parents 5166655 + 68d8d3e commit 3650a7b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/setup_fullnode.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,18 @@ function main() {
393393
fi
394394
fi
395395

396+
if [ $_PLUGINS_ ] && [ "$_PLUGINS_"X = "gateway"X ];then
397+
plugins=Y
398+
else
399+
plugins=N
400+
fi
401+
402+
read -p "Do you want to enable gateway plugin [Y/N] (Default: $plugins)? " plugins
403+
if [ "${plugins}X" = "yX" ];then
404+
_PLUGINS_=gateway
405+
echo "Gateway plugin enabled"
406+
fi
407+
396408
# Get the latest version.
397409
lastversion=$(curl -sS https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/master/README.md|grep "^- $_GREP_STRING_:"|awk '{print $3}')
398410

0 commit comments

Comments
 (0)