mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 03:17:38 -02:30
Create awx group in container
This commit is contained in:
@@ -234,6 +234,7 @@ RUN for dir in \
|
|||||||
for file in \
|
for file in \
|
||||||
/etc/subuid \
|
/etc/subuid \
|
||||||
/etc/subgid \
|
/etc/subgid \
|
||||||
|
/etc/group \
|
||||||
/etc/passwd \
|
/etc/passwd \
|
||||||
/var/lib/awx/rsyslog/rsyslog.conf ; \
|
/var/lib/awx/rsyslog/rsyslog.conf ; \
|
||||||
do touch $file ; chmod g+rw $file ; chgrp root $file ; done
|
do touch $file ; chmod g+rw $file ; chgrp root $file ; done
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ root:x:0:0:root:/root:/bin/bash
|
|||||||
awx:x:`id -u`:`id -g`:,,,:/var/lib/awx:/bin/bash
|
awx:x:`id -u`:`id -g`:,,,:/var/lib/awx:/bin/bash
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
cat <<EOF >> /etc/group
|
||||||
|
awx:x:`id -u`:awx
|
||||||
|
EOF
|
||||||
|
|
||||||
cat <<EOF > /etc/subuid
|
cat <<EOF > /etc/subuid
|
||||||
awx:100000:50001
|
awx:100000:50001
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user