Skip to content

Commit

Permalink
Improve Apptainer
Browse files Browse the repository at this point in the history
  • Loading branch information
ehfd authored Jul 6, 2024
1 parent c0bb4a4 commit 6dda299
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 @@ -11,7 +11,7 @@ trap "echo TRAPed signal" HUP INT QUIT TERM
# Wait for XDG_RUNTIME_DIR
until [ -d "${XDG_RUNTIME_DIR}" ]; do sleep 0.5; done
# 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'
chown ubuntu:ubuntu "${HOME}" || sudo-root chown ubuntu:ubuntu "${HOME}" || chown ubuntu:ubuntu "${HOME}/*" || sudo-root chown ubuntu:ubuntu "${HOME}/*" || echo 'Failed to change user directory permissions, there may be permission issues'
# Change operating system password to environment variable
(echo "$PASSWD"; echo "$PASSWD";) | sudo passwd ubuntu || (echo "mypasswd"; echo "$PASSWD"; echo "$PASSWD";) | passwd ubuntu || echo 'Password change failed, using default password'
# Remove directories to make sure the desktop environment starts
Expand Down

0 comments on commit 6dda299

Please sign in to comment.