<commit_before>#!/bin/bash

# Make apt-get be fully non-interactive
export DEBIAN_FRONTEND=noninteractive

# Turn on logging to disk
mkdir -p /var/log/journal
systemd-tmpfiles --create --prefix /var/log/journal
pkill -USR1 systemd-journal # use 'journalctl --flush' once available

# Full system update/upgrade according to shell-etc settings
apt update
apt install -y -q --force-yes apt-transport-https

wget https://raw.githubusercontent.com/hashbang/shell-etc/master/apt/sources.list -O /etc/apt/sources.list<commit_msg>install.sh: Use msmtp as sendmail(1)<commit_after>#!/bin/bash

# Make apt-get be fully non-interactive
export DEBIAN_FRONTEND=noninteractive

# Turn on logging to disk
mkdir -p /var/log/journal
systemd-tmpfiles --create --prefix /var/log/journal
pkill -USR1 systemd-journal # use 'journalctl --flush' once available

# Use msmtp as sendmail(1) implementation, Postfix's is silly
dpkg-divert /usr/sbin/sendmail
ln -sf /usr/bin/msmtp /usr/sbin/sendmail

# Full system update/upgrade according to shell-etc settings
apt update
apt install -y -q --force-yes apt-transport-https

wget https://raw.githubusercontent.com/hashbang/shell-etc/master/apt/sources.list -O /etc/apt/sources.list
{'fraction_non_alphanumeric': 0.11295681063122924, 'fraction_numerical': 0.0033222591362126247, 'mean_word_length': 4.216450216450217, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4948759', 'n_tokens_mistral': 410, 'n_tokens_neox': 398, 'n_words': 111}