<commit_before>#!/usr/bin/env bash
set -e

#Load configuration file
source config.env

#Get and apply any updates
apt-get update
apt-get --assume-yes upgrade

#Change to project root directory
cd ../../

#Tasks
source tasks/install-LAMP.sh
source tasks/install-MongoDB.sh
source tasks/install-Java8.sh
source tasks/install-gcc.sh
source tasks/change-hostname.sh
source tasks/change-vg-name.sh

#Create users
mkdir /home/faculty
newusers servers/dev.cs/faculty.usrpasswd
mkdir /home/student
newusers servers/dev.cs/student.usrpasswd

#Create SQL databases
source tasks/LAMP/add-SQL-users.sh servers/dev.cs/faculty.usrpasswd
source tasks/LAMP/add-SQL-users.sh servers/dev.cs/student.usrpasswd<commit_msg>Added error checking of home dirs<commit_after>#!/usr/bin/env bash
set -e

#Load configuration file
source config.env

#Get and apply any updates
apt-get update
apt-get --assume-yes upgrade

#Change to project root directory
cd ../../

#Tasks
source tasks/install-LAMP.sh
source tasks/install-MongoDB.sh
source tasks/install-Java8.sh
source tasks/install-gcc.sh
source tasks/change-hostname.sh
source tasks/change-vg-name.sh

#Create users
if [ ! -d /home/faculty ]; then
  mkdir /home/faculty
fi
newusers servers/dev.cs/faculty.usrpasswd
if [ ! -d /home/student ]; then
  mkdir /home/student
fi
newusers servers/dev.cs/student.usrpasswd

#Create SQL databases
source tasks/LAMP/add-SQL-users.sh servers/dev.cs/faculty.usrpasswd
source tasks/LAMP/add-SQL-users.sh servers/dev.cs/student.usrpasswd
{'fraction_non_alphanumeric': 0.11081441922563418, 'fraction_numerical': 0.0013351134846461949, 'mean_word_length': 4.204861111111111, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3615325', 'n_tokens_mistral': 520, 'n_tokens_neox': 505, 'n_words': 128}