<commit_before>#!/bin/bash

##############################################
#######     Install from scratch
##############################################

echo "installing site from scratch"

source ./build_scripts/backup_src_dir.sh

############################################
#####   Download Drupal
############################################

source ./build_scripts/download_drupal.sh

###########################################
##### Install drupal on the docker container
##########################################

# this command also needs the correct drupal version, else it just downloads the most recent
echo "Drupal Version == $drupal_version"
echo "Apache Root == $apache_root"

if [ "$drupal_version" ];then
echo "drupal_version is set to $drupal_version so we will try and get that version"
source ./build_scripts/copy_drupal_to_apache-server_container.sh
fi
###########################
####### copy a working settings file
###########################

# @TODO move the settings file to somewhere obvious
cp dockers/apache/drupal_docker_settings.php ./src/docroot/sites/default/settings.php

#########################
#### run site install on the apache-server container
########################

echo "running site install on the apache-server"
#$vagrant_apache_docker_run  -- $drush_site_install<commit_msg>various small changes, made it easier to read, added feedback<commit_after>#!/bin/bash

##############################################
#######     Install from scratch
##############################################

echo "installing site from scratch"

source ./build_scripts/backup_src_dir.sh

############################################
#####   Download Drupal
############################################

source ./build_scripts/download_drupal.sh

###########################################
##### Install drupal on the docker container
##########################################

# this command also needs the correct drupal version, else it just downloads the most recent
echo "Drupal Version == $drupal_version"
echo "Apache Root == $apache_root"

if [ "$drupal_version" ];then
echo "drupal_version is set to $drupal_version so we will try and get that version"

###########################
####### copy a working settings file
###########################

# @TODO move the settings file to somewhere obvious
cp dockers/apache/drupal_docker_settings.php ./src/docroot/sites/default/settings.php

fi

#########################
#### run site install on the apache-server container
########################

echo "running site install on the apache-server"

$vagrant_apache_docker_run  -- $drush_site_install
{'fraction_non_alphanumeric': 0.3468383188186293, 'fraction_numerical': 0.0, 'mean_word_length': 6.957831325301205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1065655', 'n_tokens_mistral': 660, 'n_tokens_neox': 623, 'n_words': 198}