Mercurial > trustbridge
view ui/tests/append-sig.sh @ 1368:41cf49df007d
(issue179) Add signature timestamp in linux installer packages
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 24 Nov 2014 14:04:34 +0100 |
parents | 8c829345ecfa |
children | 289cb3554c55 |
line wrap: on
line source
#!/bin/bash cp "$2" "$3" CUR_DT=$(date +%s) sed -i "s/###SIGNATURE_DATE###/${CUR_DT}/" "$3" echo -e \\r\\nS_DT:$CUR_DT >> "$3" echo -e \\r\\nS:$(openssl dgst -sha256 -sign "$1" < "$2" | base64 -w0) >> "$3"