This repository was archived by the owner on Mar 1, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,12 @@ ctx logger info "Installing apache2 mysql-client and some tools."
55echo " Installing apache2 mysql-client and some tools"
66sudo apt-get update -qq
77sudo 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
914echo " delete drupal and get new wget drupal"
1015rm -f drupal-8.4.4.zip
1116wget --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
1621ctx logger info " Installing Drupal packages."
1722echo " Installing Drupal packages."
1823
19- pushd $HOME /drupal-8.4.4
24+ cd $FOLDER /drupal-8.4.4
2025
2126echo " copy('https://getcomposer.org/installer', 'composer-setup.php');"
2227php -r " copy('https://getcomposer.org/installer', 'composer-setup.php');"
@@ -32,7 +37,7 @@ echo "./composer.phar install"
3237./composer.phar install
3338
3439sudo cp -R . /var/www/html
35- popd
40+
3641sudo rm -f /var/www/html/index.html
3742
3843ctx logger info " Creating the Drupal Database."
You can’t perform that action at this time.
0 commit comments