From 53ed8e0e5b6adeb53fd6d736fbc058c7045df0ad Mon Sep 17 00:00:00 2001 From: root Date: Wed, 6 Mar 2019 19:48:12 +0000 Subject: [PATCH] fixed config file bug --- utils/bootstrap.pl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/utils/bootstrap.pl b/utils/bootstrap.pl index 8ac13dd..bcdaf53 100755 --- a/utils/bootstrap.pl +++ b/utils/bootstrap.pl @@ -73,19 +73,15 @@ sub generateSys { open(FH, '>>', $sysFile); print FH $template; -}; - -sub generatePasswd { - } - + sub generateConfig { my $nodeName = shift; my $confFile = "config"; open(FH, '>',$confFile); - my $nodeConfig = "nodename\t\t".$myNode; + my $nodeConfig = "nodename\t\t".$nodeName; print FH $nodeConfig; }