Commit f597419f authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

entrypoint: simplify abuild key generation

parent c881e41b
......@@ -16,18 +16,11 @@ fi
# enable ccache if requested
[ "$DABUILD_CCACHE" = "true" ] && export USE_CCACHE=1
## generate signing keys on first run
if [ ! -r "$HOME/.abuild/abuild.conf" ]; then
abuild-keygen -n -a
# generate new abuild key if not set
if ! grep -sq "^PACKAGER_PRIVKEY=" "$HOME"/.abuild/abuild.conf; then
abuild-keygen -n -a
fi
(
. "$HOME/.abuild/abuild.conf"
if [ ! -s "$PACKAGER_PRIVKEY" ]; then
abuild-keygen -n -a
fi
)
# make sure distfiles has correct permissions
sudo install -d -m 775 -g abuild /var/cache/distfiles
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment