bootstrap.sh aktualisiert
change correct root behavior
This commit is contained in:
parent
18d3fbb3c6
commit
967479b27e
1 changed files with 7 additions and 1 deletions
|
@ -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..."
|
||||
|
|
Loading…
Add table
Reference in a new issue