mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 19:47:47 +08:00
fix: add user
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/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}
|
umask ${UMASK:-022}
|
||||||
|
|
||||||
cd /app
|
cd /app
|
||||||
exec gosu "${PUID}:${PGID}" /app/polaris
|
exec gosu chown -R abc:abc /app/polaris
|
||||||
Reference in New Issue
Block a user