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 \