Smaller Changes / Code cleanup

This commit is contained in:
Daniel Pätzold
2026-03-08 18:41:26 +01:00
parent 4b00be901e
commit 36e626e2a3
11 changed files with 26 additions and 130 deletions
+7 -1
View File
@@ -1,9 +1,15 @@
#!/bin/sh
# Replaces /etc/skel with the contents of skel.tar.zst
source ./setup_system.conf
source $(dirname "$0")/setup_system.inc.sh
EXECDIR=$(pwd)
SRCFILE="${SYSCONFIGPATH}/system_setup/skel.tar.zst"
#Check for root
if [ "$EUID" -ne 0 ]; then
echo "Error: Script requires root privileges."
exit 1
fi
cd /etc
sudo rm -f -r /etc/skel
sudo tar -xf ${SRCFILE}