diff --git a/Raspberry-Pi-5.Pifile b/Raspberry-Pi-5.Pifile index 3fbef5d..7aa12ae 100644 --- a/Raspberry-Pi-5.Pifile +++ b/Raspberry-Pi-5.Pifile @@ -26,7 +26,9 @@ email="${EMAIL}" RUN sed -i "s/raspberrypi/${hostname}/g" /etc/hostname RUN sed -i "s/raspberrypi/${hostname}/g" /etc/hosts -RUN sh -c "echo ${user}:${password} | chpasswd" + +RUN bash -c "id -u ${user} &>/dev/null || useradd -m ${user}" +RUN bash -c "echo ${user}:${password} | chpasswd" source ./Raspberry-Pi-5/locale.Pifile