This commit is contained in:
Patrick Skowronek
2022-02-16 09:59:53 +01:00
parent 78a78eecaa
commit d344afe203
16 changed files with 378 additions and 1 deletions

12
lib/functions.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash -e
exitIfNotRoot() {
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit 1
fi
}
log() {
echo "$(date +'%Y-%m-%d %T')" "$1:" "$2"
}