Skip to content

Commit

Permalink
fix: add user
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-ding committed Oct 10, 2024
1 parent befd5c6 commit f77f565
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash

groupadd -g ${PGID} abc
useradd abc -u ${PUID} -g ${PGID} -m -s /bin/bash

## 重设权限
chown -R "${PUID}:${PGID}" /app/data
chown -R abc:abc /app/data

umask ${UMASK:-022}

cd /app
exec gosu "${PUID}:${PGID}" /app/polaris
exec gosu chown -R abc:abc /app/polaris

0 comments on commit f77f565

Please sign in to comment.