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 22set -e
33
44ctx logger info " Installing apache2 mysql-client and some tools."
5-
5+ echo " 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
88pushd $HOME
9+ echo " delete drupal and get new wget drupal"
10+ rm -f drupal-8.4.4.zip
911wget --quiet -O drupal-8.4.4.zip https://ftp.drupal.org/files/projects/drupal-8.4.4.zip
12+ echo " delete dir and unzip drupal"
13+ rm -rf drupal-8.4.4/
1014unzip drupal-8.4.4.zip
1115
1216ctx logger info " Installing Drupal packages."
17+ echo " Installing Drupal packages."
1318
1419pushd $HOME /drupal-8.4.4
20+
21+ echo " copy('https://getcomposer.org/installer', 'composer-setup.php');"
1522php -r " copy('https://getcomposer.org/installer', 'composer-setup.php');"
16- php -r " if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
23+ # php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
24+
25+ echo " php composer-setup.php"
1726php composer-setup.php
27+
28+ echo " php -r unlink('composer-setup.php');"
1829php -r " unlink('composer-setup.php');"
30+
31+ echo " ./composer.phar install"
1932./composer.phar install
33+
2034sudo cp -R . /var/www/html
2135popd
22- sudo rm /var/www/html/index.html
36+ sudo rm -f /var/www/html/index.html
2337
2438ctx logger info " Creating the Drupal Database."
2539
You can’t perform that action at this time.
0 commit comments