add user name to add_borg_name

This commit is contained in:
2022-12-06 18:01:06 +01:00
parent ed9897c091
commit 85a64c0ad4
+1 -1
View File
@@ -17,7 +17,7 @@ function print_user_info {
} }
function add_borg_user { function add_borg_user {
if ! id "borg" &>/dev/null; then if ! id "$USER" &>/dev/null; then
sh -c "echo '$USER ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers" sh -c "echo '$USER ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
adduser \ adduser \
-s /bin/bash \ -s /bin/bash \