Skip to content

Commit 68d8d3e

Browse files
committed
Allow users to select enable gateway interatively #112
1 parent 67eb3f4 commit 68d8d3e

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
@@ -377,6 +377,18 @@ function main() {
377377
fi
378378
fi
379379

380+
if [ $_PLUGINS_ ] && [ "$_PLUGINS_"X = "gateway"X ];then
381+
plugins=Y
382+
else
383+
plugins=N
384+
fi
385+
386+
read -p "Do you want to enable gateway plugin [Y/N] (Default: $plugins)? " plugins
387+
if [ "${plugins}X" = "yX" ];then
388+
_PLUGINS_=gateway
389+
echo "Gateway plugin enabled"
390+
fi
391+
380392
# Get the latest version.
381393
lastversion=$(curl -sS https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/master/README.md|grep "^- $_GREP_STRING_:"|awk '{print $3}')
382394

0 commit comments

Comments
 (0)