PDC: fix the metadata creation script
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
3a42289ffb
commit
b181575596
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ BASEURL="$(echo "$BASEURL" | sed 's#/$##')"
|
||||||
# No files should not be readable by the rest of the world.
|
# No files should not be readable by the rest of the world.
|
||||||
umask 0077
|
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
|
cat > $DATADIR/metadata.xml <<EOF
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue