Files
polaris/entrypoint.sh
2025-08-31 22:47:38 +08:00

12 lines
233 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 -port ${PORT:-8080}