First Commit

This commit is contained in:
Daniel Pätzold
2026-01-02 11:24:52 +01:00
commit f48c656997
18 changed files with 999 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
# Replaces /etc/skel with the contents of skel.tar.zst
source ./setup_system.conf
EXECDIR=$(pwd)
SRCFILE="${SYSCONFIGPATH}/system_setup/skel.tar.zst"
cd /etc
sudo rm -f -r /etc/skel
sudo tar -xf ${SRCFILE}
if [ $? -eq 0 ]; then
echo "Sucessfully wrote skel new"
sudo chown -R root:root /etc/skel
sudo setfacl -R -m u::rwX,g::rX,o::rX /etc/skel
else
echo "Something went wrong, please check Output"
fi
cd ${EXECDIR}