From 85a64c0ad4a5330d19a042d117817977c0e79c0e Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Tue, 6 Dec 2022 18:01:06 +0100 Subject: [PATCH] add user name to add_borg_name --- entrypoint-script/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint-script/entrypoint.sh b/entrypoint-script/entrypoint.sh index 0a95c9a..5ff35c5 100755 --- a/entrypoint-script/entrypoint.sh +++ b/entrypoint-script/entrypoint.sh @@ -17,7 +17,7 @@ function print_user_info { } 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" adduser \ -s /bin/bash \