aboutsummaryrefslogtreecommitdiff
path: root/scripts/update_repo.sh
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-07-22 14:25:59 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-07-22 14:25:59 +0200
commit68af59fb536ab1aa7b84564980ab5f6807bdd073 (patch)
tree169451bf5bc7e606c6ea331878099240bd556a4c /scripts/update_repo.sh
parent92e8678c847dea510524e1d652c847143481e78c (diff)
downloadaurbuilder-68af59fb536ab1aa7b84564980ab5f6807bdd073.tar.gz
basic configuration
Diffstat (limited to 'scripts/update_repo.sh')
-rwxr-xr-xscripts/update_repo.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/update_repo.sh b/scripts/update_repo.sh
index 6e51754..2b0dbe2 100755
--- a/scripts/update_repo.sh
+++ b/scripts/update_repo.sh
@@ -1,5 +1,9 @@
#!/bin/bash
+test -f /etc/aurbuilder/config && source /etc/aurbuilder/config
+
OUTPUT=${OUTPUT:-/srv/pkg/}
-repo-add -p -R "$OUTPUT/repo.db.tar.gz" "$OUTPUT/"*.pkg.* || exit 1
+REPONAME=${REPONAME:-repo}
+
+repo-add -p -R "$OUTPUT/$REPONAME.db.tar.gz" "$OUTPUT/"*.pkg.* || exit 1
rm -f "$OUTDIR/"*.old