<commit_before>#!/bin/bash

set -e

echo "installing zammad..."

# crreate zammad user
useradd -M -d /home/zammad -s /bin/bash zammad

# # git clone zammad
cd /home
git clone --depth 1 -b "${GIT_BRANCH}" "${GIT_URL}"

# install zammad
cd "${ZAMMAD_DIR}"
bundle install --without test development mysql

# fetch locales
contrib/packager.io/fetch_locales.rb

# set nulldb database adapter for assets precompile<commit_msg>changed cd /home cmd<commit_after>#!/bin/bash

set -e

echo "installing zammad..."

# crreate zammad user
useradd -M -d "${ZAMMAD_DIR}" -s /bin/bash zammad

# # git clone zammad
cd $(dirname ${ZAMMAD_DIR})
git clone --depth 1 -b "${GIT_BRANCH}" "${GIT_URL}"

# install zammad
cd "${ZAMMAD_DIR}"
bundle install --without test development mysql

# fetch locales
contrib/packager.io/fetch_locales.rb

# set nulldb database adapter for assets precompile
{'fraction_non_alphanumeric': 0.1277330264672037, 'fraction_numerical': 0.0023014959723820483, 'mean_word_length': 4.14792899408284, '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': '4355904', 'n_tokens_mistral': 329, 'n_tokens_neox': 309, 'n_words': 99}