diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-19 22:10:11 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-04-03 15:50:35 +0000 |
commit | c2c7f4f8ffa579e7f5d8ca8668a563421af5d777 (patch) | |
tree | 360d5bf0980ab26bca04941fe7c8292d7a6ee203 | |
parent | 26a9286b2f2e40fc4b4de232a3882abb320e21fc (diff) | |
download | aports-c2c7f4f8ffa579e7f5d8ca8668a563421af5d777.tar.bz2 aports-c2c7f4f8ffa579e7f5d8ca8668a563421af5d777.tar.xz |
travis: fix issue with FS priviliges after recent update
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | .travis/common.sh | 1 | ||||
-rwxr-xr-x | .travis/setup-alpine | 8 |
3 files changed, 5 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index b3935f9fc7..dd81eb4b0a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,6 @@ install: - sudo .travis/setup-alpine script: | source .travis/common.sh - alpine_run $ALPINE_USER .travis/build-pkgs + alpine_run $USER .travis/build-pkgs notifications: email: false diff --git a/.travis/common.sh b/.travis/common.sh index 8b8cecdcbb..badb440e40 100644 --- a/.travis/common.sh +++ b/.travis/common.sh @@ -1,7 +1,6 @@ # vim: set ts=4: readonly ALPINE_ROOT='/mnt/alpine' -readonly ALPINE_USER='alpine' readonly CLONE_DIR="${CLONE_DIR:-$(pwd)}" readonly MIRROR_URI='http://nl.alpinelinux.org/alpine/edge' diff --git a/.travis/setup-alpine b/.travis/setup-alpine index a922dff671..cb20867edf 100755 --- a/.travis/setup-alpine +++ b/.travis/setup-alpine @@ -12,9 +12,9 @@ mount --bind "$CLONE_DIR" "${ALPINE_ROOT}${CLONE_DIR}" alpine_run <<-EOF apk add alpine-sdk lua-aports - adduser -G users -s /bin/sh -D $ALPINE_USER - addgroup $ALPINE_USER abuild - addgroup $ALPINE_USER wheel + adduser -u $SUDO_UID -G users -s /bin/sh -D $SUDO_USER + addgroup $SUDO_USER abuild + addgroup $SUDO_USER wheel echo '%wheel ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/wheel @@ -28,6 +28,6 @@ alpine_run <<-EOF EOF # This key will not be used anywhere, just to make abuild happy... -alpine_run $ALPINE_USER <<-EOF +alpine_run $SUDO_USER <<-EOF abuild-keygen -ain EOF |