<commit_before>#!/bin/sh

SCRIPT_VERSION="1.1.0"

echo "tgstation-server 4 container startup script v$SCRIPT_VERSION"
echo "PWD: $PWD"

PROD_CONFIG=/config_data/appsettings.Production.json
HOST_CONFIG=/app/appsettings.Production.json

if [ ! -f $PROD_CONFIG ]; then
	echo "$PROD_CONFIG not detected! Creating empty..."
	echo "{}" > $PROD_CONFIG
fi

echo "Linking $PROD_CONFIG to $HOST_CONFIG"
ln -v -s $PROD_CONFIG $HOST_CONFIG

if [ ! -f "$HOST_CONFIG" ]; then
	echo "ln failed to create symlink!"
	exit 1
exit

echo "Executing console runner..."
exec dotnet Tgstation.Server.Host.Console.dll<commit_msg>Add missing fi<commit_after>#!/bin/sh

SCRIPT_VERSION="1.1.0"

echo "tgstation-server 4 container startup script v$SCRIPT_VERSION"
echo "PWD: $PWD"

PROD_CONFIG=/config_data/appsettings.Production.json
HOST_CONFIG=/app/appsettings.Production.json

if [ ! -f $PROD_CONFIG ]; then
	echo "$PROD_CONFIG not detected! Creating empty..."
	echo "{}" > $PROD_CONFIG
fi

echo "Linking $PROD_CONFIG to $HOST_CONFIG"
ln -v -s $PROD_CONFIG $HOST_CONFIG

if [ ! -f "$HOST_CONFIG" ]; then
	echo "ln failed to create symlink!"
	exit 1
fi

echo "Executing console runner..."
exec dotnet Tgstation.Server.Host.Console.dll
{'fraction_non_alphanumeric': 0.1273779983457403, 'fraction_numerical': 0.008271298593879239, 'mean_word_length': 4.845410628019324, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6230895', 'n_tokens_mistral': 453, 'n_tokens_neox': 428, 'n_words': 115}