mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
build: add support for whonix in docker script.
This commit is contained in:
parent
c84af9e698
commit
5e93de2ec2
@ -66,9 +66,10 @@ build_in_docker_makepkg() {
|
||||
}
|
||||
|
||||
build_in_docker_dpkg() {
|
||||
local dist="$1"
|
||||
local dist="$1" target="$1"
|
||||
local img="$PREFIX$dist"
|
||||
|
||||
[[ "$dist" == whonix ]] && dist=debian
|
||||
if _exist "$img"; then
|
||||
if ! _is_running "$img"; then
|
||||
_start "$img"
|
||||
@ -76,7 +77,7 @@ build_in_docker_dpkg() {
|
||||
else
|
||||
docker pull "$BASEIMAGE/$dist"
|
||||
docker run -tid --name "$img" --volume "$VOLUME:$BUILDIR" \
|
||||
--env DEBIAN_FRONTEND=noninteractive --env DISTRIBUTION="$dist" \
|
||||
--env DEBIAN_FRONTEND=noninteractive --env DISTRIBUTION="$target" \
|
||||
"$BASEIMAGE/$dist"
|
||||
docker exec "$img" sudo apt-get update -q
|
||||
docker exec "$img" sudo apt-get install -y config-package-dev rsync
|
||||
|
Loading…
Reference in New Issue
Block a user