From dc17562c0a79ded8ddca3dc31778c1271bdfcc64 Mon Sep 17 00:00:00 2001 From: kevinheyer Date: Wed, 11 Jun 2025 17:22:29 +0000 Subject: [PATCH] bootstrap.sh aktualisiert --- bootstrap.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 6c8c341..f2c9738 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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"