Fix permissions on projects directory by pre-creating it

This broke after
f78c9f357d
but people seem to like this functionality so instead of reverting it we can do this.
This commit is contained in:
Shane McDonald
2019-12-04 16:50:05 -05:00
parent a1d110aac7
commit c439a1ec8f
2 changed files with 18 additions and 11 deletions

View File

@@ -126,7 +126,7 @@ ENTRYPOINT ["/entrypoint.sh"]
CMD ["/bin/bash"]
# Pre-create things that we need to write to
RUN for dir in /var/lib/awx/ /var/log/tower/ /projects /.ansible /var/log/nginx /var/lib/nginx /.local; \
RUN for dir in /var/lib/awx/ /var/log/tower/ /var/lib/awx/projects /.ansible /var/log/nginx /var/lib/nginx /.local; \
do mkdir -p $dir; chmod -R g+rwx $dir; chgrp -R root $dir; done
RUN for file in /etc/passwd /etc/supervisord.conf \