Skip to content

Commit

Permalink
Refactored to set writable ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfortun committed Feb 28, 2023
1 parent c188b86 commit 1d47123
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/ash -e

chown tokendito:tokendito /home/tokendito/.aws/config /home/tokendito/.aws/credentials /home/tokendito/.config/tokendito/tokendito.ini
files="/home/tokendito/.aws/config /home/tokendito/.aws/credentials /home/tokendito/.config/tokendito/tokendito.ini"
stat -c "chown %u:%g %n" $files > /tmp/$$.restore
chown tokendito:tokendito $files
su tokendito -c "python tokendito/tokendito.py $*"

. /tmp/$$.restore

0 comments on commit 1d47123

Please sign in to comment.