PDC: fix the metadata creation script

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2023-04-20 13:48:12 +02:00
parent 3a42289ffb
commit b181575596
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD

View file

@ -51,7 +51,8 @@ BASEURL="$(echo "$BASEURL" | sed 's#/$##')"
# No files should not be readable by the rest of the world.
umask 0077
CERT="$(grep -v '^-----' $DATADIR/certificate.pem)"
# Everything between the markers, but not the markers themselves
CERT="$(sed -n '/^-----BEGIN/,/^-----END/ {/^----/b; p}' $DATADIR/certificate.pem)"
cat > $DATADIR/metadata.xml <<EOF
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>