initial commit

This commit is contained in:
2024-03-22 07:02:10 +01:00
commit 8baec552ac
13 changed files with 623 additions and 0 deletions

13
need-root.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
if ! [ $(id -u) = 0 ]; then
echo "The script needs to be run as root." >&2
exit 1
fi
if [ $SUDO_USER ]; then
real_user=$SUDO_USER
else
real_user=$(whoami)
fi