<commit_before>#!/bin/bash

nf=`ls /var/lib/postgresql |wc -w`
if [ $nf -eq 0 ]; then
  mkdir /var/lib/postgresql/data
  chown postgres.postgres /var/lib/postgresql/data
  sudo -u postgres -g postgres initdb /var/lib/postgresql/data/
  sudo -u postgres -g postgres cp /copy/var/lib/postgresql/data/* /var/lib/postgresql/data/
else
  echo "will not build";
fi
<commit_msg>zabbix creation<commit_after>#!/bin/bash

#this is for alpine linux, irrelevant with debian/ubuntu
nf=`ls /var/lib/postgresql |wc -w`
if [ $nf -eq 0 ]; then
  mkdir /var/lib/postgresql/data
  chown postgres.postgres /var/lib/postgresql/data
  sudo -u postgres -g postgres initdb /var/lib/postgresql/data/
  sudo -u postgres -g postgres cp /copy/var/lib/postgresql/data/* /var/lib/postgresql/data/
else
  echo "will not build";
fi

#this is for all, will fail after first exec - not problematic
sudo -u postgres -g postgres createuser zabbix
sudo -u postgres -g postgres createdb -O zabbix zabbix

{'fraction_non_alphanumeric': 0.12099276111685625, 'fraction_numerical': 0.002068252326783868, 'mean_word_length': 3.4814814814814814, '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': '3421936', 'n_tokens_mistral': 383, 'n_tokens_neox': 360, 'n_words': 108}