Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions scripts/install_drupal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,25 @@ if [[ $use_shared_storage == "true" ]]; then
echo "NFS share mounted."
cd ${drupal_shared_working_dir}
else
echo "No mount NFS share. Moving to /var/www/html"
cd /var/www/
echo "No mount NFS share. Moving to /var/www/html"
cd /var/www/
fi

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

if [[ $use_shared_storage == "true" ]]; then
tar zxvf tar.gz --directory ${drupal_shared_working_dir}
tar zxvf drupal.tar.gz --directory ${drupal_shared_working_dir}
cp -r ${drupal_shared_working_dir}/drupal-*/* ${drupal_shared_working_dir}
rm -rf ${drupal_shared_working_dir}/drupal-*
cp ${drupal_shared_working_dir}/sites/default/default.settings.php sites/default/settings.php
else
tar zxvf tar.gz
rm -rf html/ tar.gz
tar zxvf drupal.tar.gz
rm -rf html/ drupal.tar.gz
mv drupal-* html
cd html
cp sites/default/default.settings.php sites/default/settings.php
fi
fi

if [[ $use_shared_storage == "true" ]]; then
echo "... Changing /etc/httpd/conf/httpd.conf with Document set to new shared NFS space ..."
Expand Down
4 changes: 2 additions & 2 deletions scripts/install_php74.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ echo "MySQL Shell successfully installed !"

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

Expand Down