add user name to add_borg_name
This commit is contained in:
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user