setup.sh 468 Bytes
Newer Older
Carlo Landmeter's avatar
Carlo Landmeter committed
1 2 3 4 5 6 7 8
#!/bin/sh

set -eu

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

apk -U upgrade -a
9
apk add alpine-sdk lua-aports pigz
Carlo Landmeter's avatar
Carlo Landmeter committed
10 11 12 13 14 15 16 17 18
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
19 20 21 22 23

# fix permissions due to umask 0000

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