diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-07-22 14:25:59 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-07-22 14:25:59 +0200 |
commit | 68af59fb536ab1aa7b84564980ab5f6807bdd073 (patch) | |
tree | 169451bf5bc7e606c6ea331878099240bd556a4c /scripts/build_packages.sh | |
parent | 92e8678c847dea510524e1d652c847143481e78c (diff) | |
download | aurbuilder-68af59fb536ab1aa7b84564980ab5f6807bdd073.tar.gz |
basic configuration
Diffstat (limited to 'scripts/build_packages.sh')
-rwxr-xr-x | scripts/build_packages.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build_packages.sh b/scripts/build_packages.sh index 34bbb15..05c3f54 100755 --- a/scripts/build_packages.sh +++ b/scripts/build_packages.sh @@ -1,11 +1,14 @@ #!/bin/bash +test -f /etc/aurbuilder/config && source /etc/aurbuilder/config + PODMAN=$(which podman) CONFFILE=${CONFFILE:-/etc/aurbuilder/packages} OUTPUT=${OUTPUT:-/srv/pkg/} FORCE_REBUILD=${FORCE_REBUILD:-no} CHOWN_TO=${CHOWN_TO:-$USER} +PACKAGER=${PACKAGER:-"John Doe <John.Doe@example.com>"} if ! ($PODMAN image list | grep aurbuilder > /dev/null); then echo Container image \"aurbuilder\" was not found. Was it built? @@ -28,6 +31,7 @@ while read -r LINE; do --env PACKAGE_NAME="$LINE" \ --env FORCE_REBUILD="$FORCE_REBUILD" \ --env CHOWN="$(id -u "$CHOWN_TO"):$(id -g "$CHOWN_TO")" \ + --env PACKAGER="$PACKAGER" \ -v "$OUTPUT:/pkgout:z" \ aurbuilder |