Skip to content
This repository was archived by the owner on Mar 1, 2020. It is now read-only.

Commit 3d60240

Browse files
authored
Merge pull request #19 from arikyakir/patch-3
Update install-drupal.sh
2 parents 37e56bf + 7fb5950 commit 3d60240

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

scripts/install-drupal.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ ctx logger info "Installing apache2 mysql-client and some tools."
55
echo "Installing apache2 mysql-client and some tools"
66
sudo apt-get update -qq
77
sudo apt-get install -y -qq unzip wget apache2 php5 libapache2-mod-php5 php5-mcrypt php5-gd mysql-client php5-mysqlnd-ms
8-
pushd $HOME
8+
9+
FOLDER="$(mktemp -d)"
10+
COMPOSER_HOME=$FOLDER
11+
export COMPOSER_HOME=$FOLDER
12+
13+
cd $FOLDER
914
echo "delete drupal and get new wget drupal"
1015
rm -f drupal-8.4.4.zip
1116
wget --quiet -O drupal-8.4.4.zip https://ftp.drupal.org/files/projects/drupal-8.4.4.zip
@@ -16,7 +21,7 @@ unzip drupal-8.4.4.zip
1621
ctx logger info "Installing Drupal packages."
1722
echo "Installing Drupal packages."
1823

19-
pushd $HOME/drupal-8.4.4
24+
cd $FOLDER/drupal-8.4.4
2025

2126
echo "copy('https://getcomposer.org/installer', 'composer-setup.php');"
2227
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
@@ -32,7 +37,7 @@ echo "./composer.phar install"
3237
./composer.phar install
3338

3439
sudo cp -R . /var/www/html
35-
popd
40+
3641
sudo rm -f /var/www/html/index.html
3742

3843
ctx logger info "Creating the Drupal Database."

0 commit comments

Comments
 (0)