Skip to content

Commit 4067c99

Browse files
committed
Fix syntax in setup.sh
Change-Id: I7b34fb707a26e07b77df3e2067adbce41fd666d5 Signed-off-by: Gabor Hosszu <[email protected]>
1 parent dc2d339 commit 4067c99

File tree

2 files changed

+42
-43
lines changed

2 files changed

+42
-43
lines changed

devenv/failure-motd.in

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
##########################################################
2+
,.-""``""-.,
3+
/ ,:,;;,;, \ DANGER DANGER
4+
\ ';';;';' / WILL ROBINSON...
5+
`'---;;---'`
6+
<>_==""==_<>
7+
_<<<<<>>>>>_
8+
.'____\==/____'.
9+
_____|__ |__| __|______
10+
/C \\\\\\\\ |..| //////// C\
11+
\_C//////// |;;| \\\\\\\\C_/
12+
|____o|##|o____|
13+
\ ___|~~|___ /
14+
'>--------<'
15+
{==_==_==_=}
16+
{= -=_=-_==}
17+
{=_=-}{=-=_}
18+
{=_==}{-=_=}
19+
}~~~~""~~~~{
20+
jgs }____::____{
21+
/` || `\
22+
| || |
23+
| || |
24+
| || |
25+
'-----''-----'
26+
##########################################################
27+
28+
If you see this notice, it means that something is wrong
29+
with your hyperledger/fabric development environment.
30+
31+
Typically this indicates that something failed during
32+
provisioning and your environment is incomplete. Builds,
33+
execution, etc., may not operate as they were intended.
34+
Please review the provisioning log and visit:
35+
36+
https://goo.gl/yqjRC7
37+
38+
for more information on troubleshooting and solutions.
39+
40+
##########################################################

devenv/setup.sh

+2-43
Original file line numberDiff line numberDiff line change
@@ -37,49 +37,8 @@ DEVENV_REVISION=`(cd /hyperledger/devenv; git rev-parse --short HEAD)`
3737
# Install WARNING before we start provisioning so that it
3838
# will remain active. We will remove the warning after
3939
# success
40-
cat <<EOF >/etc/motd
41-
##########################################################
42-
,.-""``""-.,
43-
/ ,:,;;,;, \ DANGER DANGER
44-
\ ';';;';' / WILL ROBINSON...
45-
`'---;;---'`
46-
<>_==""==_<>
47-
_<<<<<>>>>>_
48-
.'____\==/____'.
49-
_____|__ |__| __|______
50-
/C \\\\\\\\ |..| //////// C\
51-
\_C//////// |;;| \\\\\\\\C_/
52-
|____o|##|o____|
53-
\ ___|~~|___ /
54-
'>--------<'
55-
{==_==_==_=}
56-
{= -=_=-_==}
57-
{=_=-}{=-=_}
58-
{=_==}{-=_=}
59-
}~~~~""~~~~{
60-
jgs }____::____{
61-
/` || `\
62-
| || |
63-
| || |
64-
| || |
65-
'-----''-----'
66-
##########################################################
67-
68-
If you see this notice, it means that something is wrong
69-
with your hyperledger/fabric development environment.
70-
71-
Typically this indicates that something failed during
72-
provisioning and your environment is incomplete. Builds,
73-
execution, etc., may not operate as they were intended.
74-
Please review the provisioning log and visit:
75-
76-
https://goo.gl/yqjRC7
77-
78-
for more information on troubleshooting and solutions.
79-
80-
##########################################################
81-
EOF
82-
40+
SCRIPT_DIR="$(readlink -f "$(dirname "$0")")"
41+
cat "$SCRIPT_DIR/failure-motd.in" >> /etc/motd
8342

8443
# Update system
8544
apt-get update -qq

0 commit comments

Comments
 (0)