<commit_before>#!/bin/bash
test -e /usr/local/lib/bash-framework && source /usr/local/lib/bash-framework || (echo "Could not load bash-framework" 1>&2; exit 1)

################################
#          ACTUAL JOB          #
###############################@

must_run_as_root

br
log "Service update started."
br

cd /opt/services

log "Stopping service."
run "systemctl stop compose 2>&1"

log "Pulling compose repository"
run "git pull 2>&1"

log "Pulling images."
run "/usr/local/bin/docker-compose pull 2>&1"

log "Removing containers."
run "/usr/local/bin/docker-compose rm --force 2>&1"

log "Starting service."
run "systemctl start compose 2>&1"

deadmansnitch "1c61a35df2"
log "Done"
exit 0<commit_msg>Don't remove containers before update<commit_after>#!/bin/bash
test -e /usr/local/lib/bash-framework && source /usr/local/lib/bash-framework || (echo "Could not load bash-framework" 1>&2; exit 1)

################################
#          ACTUAL JOB          #
###############################@

must_run_as_root

br
log "Service update started."
br

cd /opt/services

log "Stopping service."
run "systemctl stop compose 2>&1"

log "Pulling compose repository"
run "git pull 2>&1"

log "Pulling images."
run "/usr/local/bin/docker-compose pull 2>&1"

log "Starting service."
run "systemctl start compose 2>&1"

deadmansnitch "1c61a35df2"
log "Done"
exit 0
{'fraction_non_alphanumeric': 0.21125730994152048, 'fraction_numerical': 0.027777777777777776, 'mean_word_length': 4.265384615384615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '1199922', 'n_tokens_mistral': 495, 'n_tokens_neox': 447, 'n_words': 135}