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

Commit da4b946

Browse files
authored
Merge pull request #17 from arikyakir/patch-1
Update install-drupal.sh
2 parents 6746b94 + 4b017f4 commit da4b946

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

scripts/install-drupal.sh

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,38 @@
22
set -e
33

44
ctx logger info "Installing apache2 mysql-client and some tools."
5-
5+
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
88
pushd $HOME
9+
echo "delete drupal and get new wget drupal"
10+
rm -f drupal-8.4.4.zip
911
wget --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/
1014
unzip drupal-8.4.4.zip
1115

1216
ctx logger info "Installing Drupal packages."
17+
echo "Installing Drupal packages."
1318

1419
pushd $HOME/drupal-8.4.4
20+
21+
echo "copy('https://getcomposer.org/installer', 'composer-setup.php');"
1522
php -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"
1726
php composer-setup.php
27+
28+
echo "php -r unlink('composer-setup.php');"
1829
php -r "unlink('composer-setup.php');"
30+
31+
echo "./composer.phar install"
1932
./composer.phar install
33+
2034
sudo cp -R . /var/www/html
2135
popd
22-
sudo rm /var/www/html/index.html
36+
sudo rm -f /var/www/html/index.html
2337

2438
ctx logger info "Creating the Drupal Database."
2539

0 commit comments

Comments
 (0)