bootstrap.sh aktualisiert

This commit is contained in:
kevinheyer 2025-06-11 17:22:29 +00:00
parent 1f94c5c9c8
commit dc17562c0a

View file

@ -7,7 +7,8 @@ if [ "$(id -u)" -ne 0 ]; then
exit 1
fi
USERNAME="skulladmin"
# Use the current user
USERNAME=$(whoami)
SSH_KEY_URL="https://skulldev.de/Skull-IT/trusted-ssh-keys/raw/branch/main/trusted-ssh-keys"
SSH_DIR="/home/$USERNAME/.ssh"
@ -16,11 +17,6 @@ echo "[+] Updating package list and installing essential packages..."
apt-get update
apt-get install -y wget
# Create user if not exists
if ! id "$USERNAME" &>/dev/null; then
useradd -m -s /bin/bash "$USERNAME"
fi
# Setting up SSH directory and authorized keys
echo "[+] Setting up SSH directory..."
mkdir -p "$SSH_DIR"