view ui/tests/append-sig.sh @ 1366:8c829345ecfa

(issue179) Write signature date in linux installer and add to test script
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 24 Nov 2014 12:40:49 +0100
parents 44fa5de02b52
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"

http://wald.intevation.org/projects/trustbridge/