<commit_before>#!/usr/bin/env sh

CONFIGURED_SUPERVISORD=/var/ampache-docker/configured/supervisord
CONFIGURED_APACHE=/var/ampache-docker/configured/apache
CONFIGURED_MYSQL=/var/ampache-docker/configured/mysql
CONFIGURED_AMPACHE=/var/ampache-docker/configured/ampache

# configure system if not yet configured
# supervisord
if [ ! -f "${CONFIGURED_SUPERVISORD}" ]; then
    /scripts/configure/supervisord.sh && \
    mkdir -p ${CONFIGURED_SUPERVISORD%/*} && touch "${CONFIGURED_SUPERVISORD}"
fi
# apache
if [ ! -f "${CONFIGURED_APACHE}" ]; then
    /scripts/configure/apache.sh && \
    mkdir -p ${CONFIGURED_APACHE%/*} && touch "${CONFIGURED_APACHE}"
fi

# mysql
if [ ! -f "${CONFIGURED_MYSQL}" ]; then
    /scripts/configure/mysql.sh && \
    mkdir -p ${CONFIGURED_MYSQL%/*} && touch "${CONFIGURED_MYSQL}"
fi

# mysql
if [ ! -f "${CONFIGURED_AMPACHE}" ]; then
    /scripts/configure/ampache.sh && \
    mkdir -p ${CONFIGURED_AMPACHE%/*} && touch "${CONFIGURED_AMPACHE}"
fi

# start supervisord
/usr/bin/supervisord -c /etc/supervisor/supervisord.conf<commit_msg>add some verbosity<commit_after>#!/usr/bin/env sh

CONFIGURED_SUPERVISORD=/var/ampache-docker/configured/supervisord
CONFIGURED_APACHE=/var/ampache-docker/configured/apache
CONFIGURED_MYSQL=/var/ampache-docker/configured/mysql
CONFIGURED_AMPACHE=/var/ampache-docker/configured/ampache

echo "~~ configuring system if not yet configured ~~"
# supervisord
if [ ! -f "${CONFIGURED_SUPERVISORD}" ]; then
    /scripts/configure/supervisord.sh && \
    mkdir -p ${CONFIGURED_SUPERVISORD%/*} && touch "${CONFIGURED_SUPERVISORD}"
fi
# apache
if [ ! -f "${CONFIGURED_APACHE}" ]; then
    /scripts/configure/apache.sh && \
    mkdir -p ${CONFIGURED_APACHE%/*} && touch "${CONFIGURED_APACHE}"
fi

# mysql
if [ ! -f "${CONFIGURED_MYSQL}" ]; then
    /scripts/configure/mysql.sh && \
    mkdir -p ${CONFIGURED_MYSQL%/*} && touch "${CONFIGURED_MYSQL}"
fi

# mysql
if [ ! -f "${CONFIGURED_AMPACHE}" ]; then
    /scripts/configure/ampache.sh && \
    mkdir -p ${CONFIGURED_AMPACHE%/*} && touch "${CONFIGURED_AMPACHE}"
fi


# start supervisord
echo "~~ starting the service manager supervisord ~~"
/usr/bin/supervisord -c /etc/supervisor/supervisord.conf
{'fraction_non_alphanumeric': 0.15947296683325762, 'fraction_numerical': 0.0, 'mean_word_length': 4.477611940298507, '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': '5801163', 'n_tokens_mistral': 813, 'n_tokens_neox': 809, 'n_words': 138}