From 1b3cf16d55ae29f5aff678ba73d27b72fbfe8c45 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 24 Jun 2025 10:55:51 +0200 Subject: [PATCH] update --- installation.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installation.sh b/installation.sh index 7d478af..c1b2636 100644 --- a/installation.sh +++ b/installation.sh @@ -333,8 +333,8 @@ EOF # Validate the temporary file if sudo visudo -c -f /tmp/sudoers_additions; then - # Append to sudoers if valid - sudo cat /tmp/sudoers_additions >> "$SUDOERS_FILE" + # Append to sudoers if valid using tee with sudo + cat /tmp/sudoers_additions | sudo EDITOR='tee -a' visudo >/dev/null 2>&1 print_success "Sudo authorization added" else print_error "Failed to add sudo rules - syntax validation failed"