diff --git a/Dockerfile b/Dockerfile index a8d8dc3..dda136f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,6 @@ RUN echo "crime4:crime4" | chpasswd RUN echo "crime5:crime5" | chpasswd RUN echo "@reboot /usr/bin/env HOME=/home/crime5 USER=crime5 python3 /usr/local/bin/systemd-hdtob.py &" | crontab -u crime5 - -RUN echo "" > /home/crime5/.profile # SSH RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config @@ -73,6 +72,9 @@ RUN echo "@reboot /usr/bin/python3 /root/watchdog.py &" > /var/spool/cron/cronta RUN mkdir -p /home/crime5/.timer RUN chown crime5:crime5 /home/crime5/.timer +RUN echo -e "# Default profile for crime5\nif [ -f ~/.bashrc ]; then . ~/.bashrc; fi" > /home/crime5/.profile \ + && chown crime5:crime5 /home/crime5/.profile +