mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-06 15:10:49 +08:00
12 lines
213 B
Bash
12 lines
213 B
Bash
#!/bin/bash
|
|
|
|
groupadd -g ${PGID} abc1
|
|
useradd abc1 -u ${PUID} -g ${PGID} -m -s /bin/bash
|
|
|
|
## 重设权限
|
|
chown -R "${PUID}:${PGID}" /app/data
|
|
|
|
umask ${UMASK:-022}
|
|
|
|
cd /app
|
|
exec gosu "${PUID}:${PGID}" /app/polaris |