diff 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 diff
--- a/ui/tests/append-sig.sh	Fri Nov 21 18:33:58 2014 +0100
+++ b/ui/tests/append-sig.sh	Mon Nov 24 12:40:49 2014 +0100
@@ -1,3 +1,6 @@
 #!/bin/bash
-cp $2 $3
-echo -e \\r\\nS:$(openssl dgst -sha256 -sign $1 < $2 | base64 -w0) >> $3
+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/