aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scripts
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-08-16 10:38:44 +0200
committerTobias Brunner <tobias@strongswan.org>2017-08-16 10:51:15 +0200
commit936db031c7fd24d6c0b94f31b55df4a3b076a6e8 (patch)
treef66253e691e15277eb5484f5110212deed1b97e3 /testing/scripts
parentbf31485e1eed4d6b313405a2088ad3884120e714 (diff)
downloadstrongswan-936db031c7fd24d6c0b94f31b55df4a3b076a6e8.tar.bz2
strongswan-936db031c7fd24d6c0b94f31b55df4a3b076a6e8.tar.xz
testing: Make removal of SWID tags work with different releases
The regid.2004-03.org.strongswan directory might not exist in new images.
Diffstat (limited to 'testing/scripts')
-rwxr-xr-xtesting/scripts/build-strongswan3
1 files changed, 1 insertions, 2 deletions
diff --git a/testing/scripts/build-strongswan b/testing/scripts/build-strongswan
index d4e9e922f..150fce30c 100755
--- a/testing/scripts/build-strongswan
+++ b/testing/scripts/build-strongswan
@@ -50,8 +50,7 @@ execute "bindfs -u $SRCUID -g $SRCGID $SWANDIR $LOOPDIR/root/strongswan"
do_on_exit umount $LOOPDIR/root/strongswan
log_action "Remove SWID tags of previous versions"
-execute_chroot 'find /usr/local/share/regid.2004-03.org.strongswan -name *.swidtag -delete'
-execute_chroot 'find /usr/local/share/strongswan -name *.swidtag -delete'
+execute_chroot "find /usr/local/share -path '*strongswan*' -name *.swidtag -delete"
echo "Building and installing strongSwan"