Skip to content

Commit 6332bd6

Browse files
author
ironex
committed
Fix mkdir command and create auth.json before mounting it to container
1 parent 7514b84 commit 6332bd6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bin/new-project.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ magento="magento"
2323

2424
if [ ! -d $magento ]
2525
then
26-
mkidr $magento
26+
mkdir $magento
27+
fi
28+
29+
# Create auth.json file if it does not exist
30+
auth="auth.json"
31+
32+
if test -f "$auth"; then
33+
echo "" > docker/php-fpm/auth.json
2734
fi
2835

2936
# Build images and create and start containers

0 commit comments

Comments
 (0)