#!/bin/bash # Install and configure a Ubuntu-PC for the charity organization angestöpselt e.V. | angestoepselt.de # created by matthias of angestöpselt e.V. # created at 2022-02-17 version=0.2 set -o errexit exec 100>/tmp/z31.lock || exit 1 flock 100 || exit 1 # Speed up script by not using unicode. LC_ALL=C LANG=C # some static variables DEBIAN_FRONTEND=noninteractive current_user=$(id 1000 | awk -F '[()]' '{print $2}') lockfile=/tmp/z31.lock sysinfofile=$HOME/.config/systeminfo.json random_tmpdir=$(mktemp) SCRIPT_DIR="$(dirname "$0")" TIME=$(date +%Y%m%d%H%M) LOGTIME=$(date "+%Y-%m-%d %H:%M:%S") LOGFILE="$SCRIPT_DIR/$TIME-z31.log"