mirror of
https://github.com/cusspvz/openwrt-builder.docker.git
synced 2026-08-11 16:32:52 +00:00
fix: prepare for travis builds
This commit is contained in:
@@ -18,7 +18,7 @@ RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/so
|
||||
ADD entrypoint.sh /entrypoint
|
||||
RUN chmod 755 /entrypoint
|
||||
|
||||
RUN mkdir -p /src /output
|
||||
RUN mkdir -p /src /output /overlay /repositories /feeds
|
||||
WORKDIR /src
|
||||
ENTRYPOINT ["/entrypoint"]
|
||||
CMD ["/bin/bash"]
|
||||
@@ -3,7 +3,13 @@
|
||||
# If GOSU_USER environment variable set to something other than 0:0 (root:root),
|
||||
# become user:group set within and exec command passed in args
|
||||
if [ "$GOSU_USER" != "0:0" ]; then
|
||||
echo "[OpenWRT Builder] Arranging permissions..."
|
||||
|
||||
chown -R $GOSU_USER /src
|
||||
chown -R $GOSU_USER /output
|
||||
[ -d /feeds ] && chown -R $GOSU_USER /feeds
|
||||
[ -d /repositories ] && chown -R $GOSU_USER /repositories
|
||||
[ -d /overlay ] && chown -R $GOSU_USER /overlay
|
||||
|
||||
# make sure a valid user exists in /etc/passwd
|
||||
if grep "^builder:" /etc/passwd; then
|
||||
|
||||
Reference in New Issue
Block a user