testing: Make removal of SWID tags work with different releases

The regid.2004-03.org.strongswan directory might not exist in new images.
This commit is contained in:
Tobias Brunner
2017-08-16 10:51:15 +02:00
parent bf31485e1e
commit 936db031c7
+1 -2
View File
@@ -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"