comparison 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
comparison
equal deleted inserted replaced
1365:3d7ddf698480 1366:8c829345ecfa
1 #!/bin/bash 1 #!/bin/bash
2 cp $2 $3 2 cp "$2" "$3"
3 echo -e \\r\\nS:$(openssl dgst -sha256 -sign $1 < $2 | base64 -w0) >> $3 3 CUR_DT=$(date +%s)
4 sed -i "s/###SIGNATURE_DATE###/${CUR_DT}/" "$3"
5 echo -e \\r\\nS_DT:$CUR_DT >> "$3"
6 echo -e \\r\\nS:$(openssl dgst -sha256 -sign "$1" < "$2" | base64 -w0) >> "$3"

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