testing: Automatically build guest images after generating certificates
authorTobias Brunner <tobias@strongswan.org>
Tue, 7 May 2019 17:20:04 +0000 (19:20 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 8 May 2019 12:56:48 +0000 (14:56 +0200)
This (re-)generates the CRLs on winnetou.

testing/scripts/build-certs

index d473cdc..464b69c 100755 (executable)
@@ -39,3 +39,10 @@ do_on_exit umount $LOOPDIR/root/testing
 
 log_action "Building certificates"
 execute_chroot "/root/testing/scripts/build-certs-chroot"
+
+# rebuild the guest images to generate the CRLs on winnetou
+if [ -z "$2" ]; then
+       # cleanup before mounting guest images
+       on_exit
+       $DIR/scripts/build-guestimages
+fi