Skip to content

Commit

Permalink
Change password mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
ehfd authored Jun 22, 2024
1 parent eccd0a7 commit 9dc3d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ chmod 700 /tmp/runtime-ubuntu
# Make user directory owned by the default ubuntu user
chown ubuntu:ubuntu /home/ubuntu || sudo-root chown ubuntu:ubuntu /home/ubuntu || chown ubuntu:ubuntu /home/ubuntu/* || sudo-root chown ubuntu:ubuntu /home/ubuntu/* || echo 'Failed to change user directory permissions, there may be permission issues'
# Change operating system password to environment variable
echo "ubuntu:$PASSWD" | chpasswd
(echo "$PASSWD"; echo "$PASSWD";) | sudo passwd ubuntu
# Remove directories to make sure the desktop environment starts
rm -rf /tmp/.X* ~/.cache
# Change time zone from environment variable
Expand Down

0 comments on commit 9dc3d70

Please sign in to comment.