From 231fa9ce4dfc816e7c8188fc9ce2e1e6aefe012f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 12 Oct 2024 09:00:50 +0200 Subject: [PATCH] Update Dockerfile --- battybirdnet-pi/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/battybirdnet-pi/Dockerfile b/battybirdnet-pi/Dockerfile index d8e4c3ade..d3acd219b 100644 --- a/battybirdnet-pi/Dockerfile +++ b/battybirdnet-pi/Dockerfile @@ -101,7 +101,13 @@ RUN \ \ # Cleanup apt-get clean all && \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/* && \ + \ + # Use only first user + for file in $(grep -rl "'/1000/{print \$1}'" "$HOME"); do \ + sed -i "s|'/1000/{print \$1}'|'/1000/{print \$1; exit}'|" "$file" && \ + sed -i "s|'/1000/{print \$6}'|'/1000/{print \$6; exit}'|" "$file"; \ + done ################## # 2 Modify Image #