Skip to content

Commit 0d0aff8

Browse files
committed
Fixed a few issues with the docker/run script.
- Legacy-Id: 11022
1 parent 4866a24 commit 0d0aff8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker/run

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ else
132132
fi
133133

134134

135-
if [ $($machine status default) != "Running" ]; then
135+
if [ $($machine status default | tr "A-Z" "a-z" ) != "running" ]; then
136136
echo "The docker VM doesn't seem to be running; will attempt to start it by doing '\$ $machine start':"
137137
$machine start || die "Failed taking up the Docker VM"
138138
fi
139139

140140
if [ -f "$machine" ]; then
141-
if [ $($machine status | tr "A-Z" "a-z") = "Running" ]; then
141+
if [ $($machine status default | tr "A-Z" "a-z") = "running" ]; then
142142
tmpfile=$(mktemp docker.run.XXXXXXXX)
143-
if $machine $env 2>/dev/null | grep DOCKER_ > $tmpfile; then
143+
if $machine env 2>/dev/null | grep DOCKER_ > $tmpfile; then
144144
mv $tmpfile ~/.docker-info
145145
elif printenv | grep DOCKER_ > $tmpfile; then
146146
mv $tmpfile ~/.docker-info
@@ -169,7 +169,7 @@ to bail out here. Quitting."
169169
if [ -n "$DOWNLOAD" ]; then
170170
(
171171
cd $(dirname $MYSQLDIR)
172-
wget -N $URL && tar xjf ietf_utf8.bin.tar.bz2 && chmod -R g+rX mysql
172+
wget -N $URL && tar xjf ietf_utf8.bin.tar.bz2 && chmod -R go+rwX mysql
173173
)
174174
[ -d "$MYSQLDIR" ] || die "The download seems to have failed; still no $MYSQLDIR. Giving up."
175175
else

0 commit comments

Comments
 (0)