setup.sh 468 Bytes
Newer Older
Kevin Daudt's avatar
Kevin Daudt committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -eu

release=${1:-edge}
echo "http://dl-cdn.alpinelinux.org/alpine/$release/main" > /etc/apk/repositories

apk -U upgrade -a
apk add alpine-sdk lua-aports pigz
rm -rf /var/cache/apk/*

# use buildozer for building
adduser -D buildozer
adduser buildozer abuild
adduser buildozer wheel

# default distfiles location
install -d -g abuild -m 775 /var/cache/distfiles

# fix permissions due to umask 0000

chmod 750 /etc/sudoers.d
chmod 640 /etc/sudoers.d/*