mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-07 02:27:40 +08:00
fix: add user
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user