Skip to content

Commit 1673ff5

Browse files
committed
Fix installer by setting the correct group permissions
... and exit on error
1 parent 757de6a commit 1673ff5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/installer/bin/install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -e
4+
35
#####################################
46
# Update the Magento Installation
57
# Arguments:
@@ -58,7 +60,6 @@ function runForever() {
5860

5961
# Fix the www-folder permissions
6062
chgrp -R 33 /var/www/html
61-
chmod g+w /var/www/html/web/var /var/www/html/web/app/etc /var/www/html/web/media
6263

6364
# Check if the MAGENTO_ROOT direcotry has been specified
6465
if [ -z "$MAGENTO_ROOT" ]
@@ -103,11 +104,13 @@ substitute-env-vars.sh /etc /etc/fpc.xml.tmpl
103104
echo "Overriding Magento Configuration"
104105
cp -v /etc/local.xml /var/www/html/web/app/etc/local.xml
105106
cp -v /etc/fpc.xml /var/www/html/web/app/etc/fpc.xml
107+
chgrp -R 33 $MAGENTO_ROOT/app/etc
106108

107109
echo "Installing Sample Data: Media"
108110
curl -s -L https://raw.githubusercontent.com/Vinai/compressed-magento-sample-data/1.9.1.0/compressed-no-mp3-magento-sample-data-1.9.1.0.tgz | tar xz -C /tmp
109111
cp -av /tmp/magento-sample-data-*/* $MAGENTO_ROOT
110112
rm -rf /tmp/magento-sample-data-*
113+
chgrp -R 33 $MAGENTO_ROOT
111114

112115
echo "Installing Sample Data: Database"
113116
magerun --skip-root-check --root-dir="$MAGENTO_ROOT" db:create

0 commit comments

Comments
 (0)