]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: use here document to display multi-line message 41674/head
authorKefu Chai <kchai@redhat.com>
Thu, 3 Jun 2021 10:45:48 +0000 (18:45 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 3 Jun 2021 11:43:10 +0000 (19:43 +0800)
for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/vstart.sh

index de85c80f26c70d4809f748d43659f03b0ec3efca..984f05514219741c067279ed314199ef46a8c512 100755 (executable)
@@ -1647,15 +1647,19 @@ debug echo "vstart cluster complete. Use stop.sh to stop. See out/* (e.g. 'tail
 echo ""
 if [ "$new" -eq 1 ]; then
     if $with_mgr_dashboard; then
-        echo "dashboard urls: $DASH_URLS"
-        echo "  w/ user/pass: admin / admin"
+        cat <<EOF
+dashboard urls: $DASH_URLS
+  w/ user/pass: admin / admin
+EOF
     fi
     if $with_mgr_restful; then
-        echo "restful urls: $RESTFUL_URLS"
-        echo "  w/ user/pass: admin / $RESTFUL_SECRET"
-        echo ""
+        cat <<EOF
+restful urls: $RESTFUL_URLS
+  w/ user/pass: admin / $RESTFUL_SECRET
+EOF
     fi
 fi
+
 echo ""
 # add header to the environment file
 {