Skip to content

Commit b13a1fc

Browse files
authored
Merge pull request #6 from Anand-GitH/main
Install latest drupal version with PHP upgrade
2 parents 0e9c0f5 + 9d3235b commit b13a1fc

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

scripts/install_drupal.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,25 @@ if [[ $use_shared_storage == "true" ]]; then
1414
echo "NFS share mounted."
1515
cd ${drupal_shared_working_dir}
1616
else
17-
echo "No mount NFS share. Moving to /var/www/html"
18-
cd /var/www/
17+
echo "No mount NFS share. Moving to /var/www/html"
18+
cd /var/www/
1919
fi
2020

21-
wget https://www.drupal.org/download-latest/tar.gz
21+
#To download latest drupal
22+
wget https://www.drupal.org/download-latest/tar.gz -O drupal.tar.gz
2223

2324
if [[ $use_shared_storage == "true" ]]; then
24-
tar zxvf tar.gz --directory ${drupal_shared_working_dir}
25+
tar zxvf drupal.tar.gz --directory ${drupal_shared_working_dir}
2526
cp -r ${drupal_shared_working_dir}/drupal-*/* ${drupal_shared_working_dir}
2627
rm -rf ${drupal_shared_working_dir}/drupal-*
2728
cp ${drupal_shared_working_dir}/sites/default/default.settings.php sites/default/settings.php
2829
else
29-
tar zxvf tar.gz
30-
rm -rf html/ tar.gz
30+
tar zxvf drupal.tar.gz
31+
rm -rf html/ drupal.tar.gz
3132
mv drupal-* html
3233
cd html
3334
cp sites/default/default.settings.php sites/default/settings.php
34-
fi
35+
fi
3536

3637
if [[ $use_shared_storage == "true" ]]; then
3738
echo "... Changing /etc/httpd/conf/httpd.conf with Document set to new shared NFS space ..."

scripts/install_php74.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ echo "MySQL Shell successfully installed !"
1818

1919
if [[ $(uname -r | sed 's/^.*\(el[0-9]\+\).*$/\1/') == "el8" ]]
2020
then
21-
dnf -y module enable php:remi-8.2
21+
dnf -y module enable php:remi-8.4
2222
dnf -y install php php-cli php-mysqlnd php-zip php-gd php-mcrypt php-mbstring php-xml php-json php-opcache
2323
else
24-
yum-config-manager --enable remi-php82
24+
yum-config-manager --enable remi-php84
2525
yum -y install php php-cli php-mysqlnd php-zip php-gd php-mcrypt php-mbstring php-xml php-json php-opcache
2626
fi
2727

0 commit comments

Comments
 (0)