Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 3385d8a

Browse files
committed
Merge branch 'release/1.0.2'
2 parents d01ece4 + e363800 commit 3385d8a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vagrant/provisioning/magento2-install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ HOME_DIR=$(getent passwd ${VAGRANT_USER} | cut -d ':' -f6)
77

88
cd ${HOME_DIR}/magento2
99

10+
MYSQLPASSWORD=$(awk -F "=" '/password/ {print $2}' ${HOME_DIR}/.my.cnf | sed -e 's/^[ \t]*//')
11+
mysql -u app -p${MYSQLPASSWORD} -e "create database magento2"
12+
1013
echo "Downloading Magento 2..."
1114

1215
[ -d ${HOME_DIR}/magento2/bin ] || $AS_USER wget -qO- https://magento.mirror.hypernode.com/releases/magento2-latest.tar.gz | $AS_USER tar xfz -
@@ -18,4 +21,4 @@ echo "Installing ..."
1821
$AS_USER ln -fs ../magento2/pub/* ../public
1922
$AS_USER bin/magento setup:static-content:deploy
2023

21-
echo "Static content deployed ..."
24+
echo "Static content deployed ..."

vagrant/provisioning/magento2.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,5 @@ HOME_DIR=$(getent passwd ${VAGRANT_USER} | cut -d ':' -f6)
77

88
$AS_USER touch ${HOME_DIR}/nginx/magento2.flag
99

10-
MYSQLPASSWORD=$(awk -F "=" '/password/ {print $2}' ${HOME_DIR}/.my.cnf | sed -e 's/^[ \t]*//')
11-
mysql -u app -p${MYSQLPASSWORD} -e "create database magento2"
12-
1310
[ -d ${HOME_DIR}/magento2 ] || $AS_USER mkdir ${HOME_DIR}/magento2
1411
[ -d ${HOME_DIR}/public ] || $AS_USER mkdir ${HOME_DIR}/public

0 commit comments

Comments
 (0)