<commit_before>#!/bin/bash
mkdir -p /data/ajenti
mkdir -p /data/backups
mkdir -p /data/sites
chown -R www-data:www-data /data/sites

mkdir -p /data/nginx/http-conf
mkdir -p /data/nginx/global-conf
mkdir -p /data/nginx/main-conf

mv -n /etc/nginx/** /data/nginx/main-conf
mv -n /etc/ajenti/** /data/ajenti

rm -rf /etc/nginx
ln -sdf /data/nginx/main-conf /etc/nginx 
rm -rf /etc/nginx.custom.d
ln -sdf /data/nginx/http-conf /etc/nginx.custom.d 
rm -rf /etc/nginx.custom.global.d
ln -sdf /data/nginx/global-conf /etc/nginx.custom.global.d 
rm -rf /etc/ajenti
ln -sdf /data/ajenti /etc/ajenti 

echo $MYSQL_ADMIN_PASSWORD > /root/dbpass.txt

VOLUME_HOME="/var/lib/mysql"
export TERM=linux
if [[ ! -d $VOLUME_HOME/mysql ]]; then
    
    echo "=> An empty or uninitialized MySQL volume is detected in $VOLUME_HOME"
    echo "=> Installing MySQL ..."<commit_msg>update checkpoint<commit_after>#!/bin/bash
mkdir -p /data/ajenti
mkdir -p /data/backups
mkdir -p /data/sites
chown -R www-data:www-data /data/sites

mkdir -p /data/nginx/http-conf
mkdir -p /data/nginx/global-conf
# mkdir -p /data/nginx/main-conf

# mv -n /etc/nginx/** /data/nginx/main-conf
mv -n /etc/ajenti/** /data/ajenti

# rm -rf /etc/nginx
# ln -sdf /data/nginx/main-conf /etc/nginx 
rm -rf /etc/nginx.custom.d
ln -sdf /data/nginx/http-conf /etc/nginx.custom.d 
rm -rf /etc/nginx.custom.global.d
ln -sdf /data/nginx/global-conf /etc/nginx.custom.global.d 
rm -rf /etc/ajenti
ln -sdf /data/ajenti /etc/ajenti 

echo $MYSQL_ADMIN_PASSWORD > /root/dbpass.txt

VOLUME_HOME="/var/lib/mysql"
export TERM=linux
if [[ ! -d $VOLUME_HOME/mysql ]]; then
    
    echo "=> An empty or uninitialized MySQL volume is detected in $VOLUME_HOME"
    echo "=> Installing MySQL ..."
{'fraction_non_alphanumeric': 0.15990730011587487, 'fraction_numerical': 0.0, 'mean_word_length': 2.9610091743119265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '211660', 'n_tokens_mistral': 743, 'n_tokens_neox': 715, 'n_words': 167}