1
0
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:
José Moreira
2018-09-10 02:00:24 +01:00
parent a2f0d20e16
commit 760b525481
5 changed files with 52 additions and 7 deletions
+1 -1
View File
@@ -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"]
+6
View File
@@ -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