bootstrap.sh aktualisiert

change correct root behavior
This commit is contained in:
kevinheyer 2025-06-14 12:23:55 +00:00
parent 18d3fbb3c6
commit 967479b27e

View file

@ -17,7 +17,13 @@ if [ -z "$USERNAME" ]; then
fi
SSH_KEY_URL="https://skulldev.de/Skull-IT/trusted-ssh-keys/raw/branch/main/trusted-ssh-keys"
SSH_DIR="/home/$USERNAME/.ssh"
# Set SSH directory based on username
if [ "$USERNAME" = "root" ]; then
SSH_DIR="/root/.ssh"
else
SSH_DIR="/home/$USERNAME/.ssh"
fi
# Update package list and install necessary packages
echo "[+] Updating package list and installing essential packages..."