This repository was archived by the owner on Feb 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ HOME_DIR=$(getent passwd ${VAGRANT_USER} | cut -d ':' -f6)
77
88cd ${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+
1013echo " 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 ..."
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments