From 7188cfaf7859671d146dd994e360a55167567eac Mon Sep 17 00:00:00 2001 From: Evgeniy Alekseev Date: Fri, 1 Apr 2022 18:39:24 +0300 Subject: [PATCH] remove implicit user from docker --- Dockerfile | 1 - docker/entrypoint.sh | 8 -------- 2 files changed, 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 14ff1aab..c69a7a68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ FROM archlinux:base-devel # image configuration -ENV AHRIMAN_API_USER="" ENV AHRIMAN_ARCHITECTURE="x86_64" ENV AHRIMAN_DEBUG="" ENV AHRIMAN_FORCE_ROOT="" diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 1d3b6eef..de828a3a 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -31,14 +31,6 @@ if [ -n "$AHRIMAN_PORT" ]; then AHRIMAN_SETUP_ARGS+=("--web-port" "$AHRIMAN_PORT") fi ahriman "${AHRIMAN_DEFAULT_ARGS[@]}" repo-setup "${AHRIMAN_SETUP_ARGS[@]}" -# add user for api if set -if [ -n "$AHRIMAN_API_USER" ]; then - # python getpass does not read from stdin - # see thread https://mail.python.org/pipermail/python-dev/2008-February/077235.html - # WARNING with debug mode password will be put to stdout - ahriman "${AHRIMAN_DEFAULT_ARGS[@]}" user-list --error-on-empty "$AHRIMAN_API_USER" > /dev/null || - ahriman "${AHRIMAN_DEFAULT_ARGS[@]}" user-add --as-service --role write --secure "$AHRIMAN_API_USER" -p "$(openssl rand -base64 20)" -fi # refresh database runuser -u build -- yay --noconfirm -Syy &> /dev/null