You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by is...@apache.org on 2014/04/06 05:09:27 UTC

git commit: Setup in silent mode should not confirm the user provided

Repository: incubator-stratos
Updated Branches:
  refs/heads/master 3f5ca9d03 -> 8a41868d3


Setup in silent mode should not confirm the user provided


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/8a41868d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/8a41868d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/8a41868d

Branch: refs/heads/master
Commit: 8a41868d3ab43d55084e50934da62c1d35efa9ae
Parents: 3f5ca9d
Author: M. Isuru Tharanga Chrishantha Perera <is...@apache.org>
Authored: Sun Apr 6 08:39:03 2014 +0530
Committer: M. Isuru Tharanga Chrishantha Perera <is...@apache.org>
Committed: Sun Apr 6 08:39:03 2014 +0530

----------------------------------------------------------------------
 tools/stratos-installer/setup.sh | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8a41868d/tools/stratos-installer/setup.sh
----------------------------------------------------------------------
diff --git a/tools/stratos-installer/setup.sh b/tools/stratos-installer/setup.sh
index 589ab79..ed19f0f 100755
--- a/tools/stratos-installer/setup.sh
+++ b/tools/stratos-installer/setup.sh
@@ -472,16 +472,19 @@ if [[ $host_user == "" ]]; then
     exit 1
 fi
 
-echo "user provided in conf/setup.conf is $host_user. If you want to provide some other user name please specify it at the prompt."
-echo "If you want to continue with $host_user just press enter to continue"
-read username
-if [[ $username != "" ]]; then
-    host_user=$username
-fi
-user=`id $host_user`
-if [[ $? = 1 ]]; then
-    echo "User $host_user does not exist. The system will create it."
-    adduser --home /home/$host_user $host_user
+echo "user provided in conf/setup.conf is $host_user."
+if [[ $auto_start_servers != "true" ]]; then
+    echo "If you want to provide some other user name please specify it at the prompt."
+    echo "If you want to continue with $host_user just press enter to continue"
+    read username
+    if [[ $username != "" ]]; then
+        host_user=$username
+    fi
+    user=`id $host_user`
+    if [[ $? = 1 ]]; then
+        echo "User $host_user does not exist. The system will create it."
+        adduser --home /home/$host_user $host_user
+    fi
 fi
 
 export $host_user