testing: Create new files in mounted strongSwan sources as regular user
authorTobias Brunner <tobias@strongswan.org>
Mon, 15 Apr 2019 11:23:05 +0000 (13:23 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 15 Apr 2019 12:01:02 +0000 (14:01 +0200)
testing/scripts/build-strongswan

index 24e11bb..2214a57 100755 (executable)
@@ -56,7 +56,7 @@ do_on_exit umount $LOOPDIR/root/shared
 
 mkdir -p $LOOPDIR/root/strongswan
 log_action "Mounting $SWANDIR as /root/strongswan"
-execute "bindfs -u $SRCUID -g $SRCGID $SWANDIR $LOOPDIR/root/strongswan"
+execute "bindfs -u $SRCUID -g $SRCGID --create-for-user=$SRCUID --create-for-group=$SRCGID $SWANDIR $LOOPDIR/root/strongswan"
 do_on_exit umount $LOOPDIR/root/strongswan
 
 log_action "Copy /etc/resolv.conf"