<commit_before>#!/bin/bash
. /opt/farm/scripts/functions.custom

/opt/farm/update.sh

if [ -f /etc/farmconfig ]; then
	. /etc/farmconfig
else
	/opt/farm/scripts/setup/init.sh
	exit
fi


/opt/farm/scripts/setup/repos.sh
/opt/farm/scripts/setup/keys.sh

if [ -d /usr/local/cpanel ]; then
	echo "skipping mta configuration, system is controlled by cPanel, with Exim as MTA"
elif [ -f /etc/elastix.conf ]; then
	echo "skipping mta configuration, system is controlled by Elastix"
elif [ ! -d $base ]; then
	echo "skipping mta configuration, unknown system version"
elif [ "$SMTP" != "true" ]; then
	/opt/farm/scripts/setup/role.sh sf-mta-forwarder
else
	/opt/farm/scripts/setup/role.sh sf-mta-relay
fi

/opt/farm/scripts/setup/role.sh base

if [ "$HWTYPE" = "physical" ]; then
	/opt/farm/scripts/setup/role.sh hardware
	/opt/farm/scripts/setup/role.sh sf-ntp
fi

if [ ! -d $base ]; then
	echo "skipping syslog configuration, unknown system version"
elif [ "$SYSLOG" != "true" ]; then
	/opt/farm/scripts/setup/role.sh sf-log-forwarder
else
	/opt/farm/scripts/setup/role.sh sf-log-receiver
	/opt/farm/scripts/setup/role.sh sf-log-monitor<commit_msg>preparing to support more operating systems<commit_after>#!/bin/bash
. /opt/farm/scripts/functions.custom

/opt/farm/update.sh

if [ -f /etc/farmconfig ]; then
	. /etc/farmconfig
else
	/opt/farm/scripts/setup/init.sh
	exit
fi


/opt/farm/scripts/setup/repos.sh
/opt/farm/scripts/setup/keys.sh

if [ -d /usr/local/cpanel ]; then
	echo "skipping mta configuration, system is controlled by cPanel, with Exim as MTA"
elif [ -f /etc/elastix.conf ]; then
	echo "skipping mta configuration, system is controlled by Elastix"
elif [ ! -d $base/packages ]; then
	echo "skipping mta configuration, unknown system version"
elif [ "$SMTP" != "true" ]; then
	/opt/farm/scripts/setup/role.sh sf-mta-forwarder
else
	/opt/farm/scripts/setup/role.sh sf-mta-relay
fi

/opt/farm/scripts/setup/role.sh base

if [ "$HWTYPE" = "physical" ]; then
	/opt/farm/scripts/setup/role.sh hardware
	/opt/farm/scripts/setup/role.sh sf-ntp
fi

if [ ! -d $base/packages ]; then
	echo "skipping syslog configuration, unknown system version"
elif [ "$SYSLOG" != "true" ]; then
	/opt/farm/scripts/setup/role.sh sf-log-forwarder
else
	/opt/farm/scripts/setup/role.sh sf-log-receiver
	/opt/farm/scripts/setup/role.sh sf-log-monitor
{'fraction_non_alphanumeric': 0.14751286449399656, 'fraction_numerical': 0.0, 'mean_word_length': 3.647410358565737, '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': '5114739', 'n_tokens_mistral': 896, 'n_tokens_neox': 884, 'n_words': 200}