X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Futil%2Flxc_copy_dir.sh;fp=test%2Fblackbox%2Futil%2Flxc_copy_dir.sh;h=0000000000000000000000000000000000000000;hb=2d38bcd7378c1237d95e9465f2b0dab74453f456;hp=d9be5f998cf0245dc9b15942bcfa9384ba2aea96;hpb=196b0da2cb6b4973c4d92afecb0b481c560d36a5;p=meshlink-tiny diff --git a/test/blackbox/util/lxc_copy_dir.sh b/test/blackbox/util/lxc_copy_dir.sh deleted file mode 100755 index d9be5f9..0000000 --- a/test/blackbox/util/lxc_copy_dir.sh +++ /dev/null @@ -1,27 +0,0 @@ -# lxc_copy.sh -- Script to transfer multiple files into an LXC Container -# Designed to work on unprivileged Containers -# Copyright (C) 2018 Guus Sliepen -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -# Read command-line arguments -srcdir=$1 -containername=$2 -containerdstdir=$3 - -# Create destination directory inside container and copy source directory contents into it -# by 'tar'ing the source directory and un'tar'ing it inside the container -lxc-attach -n ${containername} -- mkdir ${containerdstdir} -tar -C ${srcdir} -c . | lxc-attach -n ${containername} -- tar -C ${containerdstdir} -xvp