Martchus
f697ed8e63
This is useful to invoke `updpkgsums` or `repo-add` within the container as well. These tools also seem to need the additional logic to use a dedicated build user so it makes sense to make this part of `makecontainerpkg`.
7 lines
291 B
Bash
7 lines
291 B
Bash
#!/bin/bash
|
|
set -e
|
|
export LOGDEST=$PWD SRCPKGDEST=$PWD SRCDEST=$PWD PKGDEST=$PWD BUILDDIR=/build
|
|
export BUILDTOOL=makecontainerbuild BUILDTOOLVER="0.0.1"
|
|
chown builduser:builduser "$PWD"
|
|
sudo --preserve-env=LOGDEST,SRCPKGDEST,SRCDEST,PKGDEST,BUILDDIR,BUILDTOOL,BUILDTOOLVER --user builduser
|