summaryrefslogtreecommitdiffstats
path: root/daemon/lua/trust_anchors.test/regen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/lua/trust_anchors.test/regen.sh')
-rwxr-xr-xdaemon/lua/trust_anchors.test/regen.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/lua/trust_anchors.test/regen.sh b/daemon/lua/trust_anchors.test/regen.sh
new file mode 100755
index 0000000..09b334c
--- /dev/null
+++ b/daemon/lua/trust_anchors.test/regen.sh
@@ -0,0 +1,2 @@
+for F in *.xml; do sed -i "s/TrustAnchor id=\"[^\"]*\"/TrustAnchor id=\"$(uuidgen | tr '[[:lower:]]' '[[:upper:]]')\"/" $F; done
+for F in *.xml; do sed -i "s#source=\"[^\"]*\"#source=\"https://localhost/$F\"#" $F; done