mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 11:00:25 +00:00
change find to use keys, fix /etc/docker copying using find
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
dba240e1f5
commit
293a1eb23d
@ -40,7 +40,11 @@ start()
|
||||
|
||||
if mobyconfig exists etc/docker
|
||||
then
|
||||
cp -a $(mobyconfig find etc/docker) /etc/docker/
|
||||
for f in $(mobyconfig find etc/docker)
|
||||
do
|
||||
mkdir -p $(dirname $f)
|
||||
mobyconfig get $f > $f
|
||||
done
|
||||
fi
|
||||
if mobyconfig exists network
|
||||
then
|
||||
|
@ -73,7 +73,7 @@ if [ $1 == "find" ]
|
||||
then
|
||||
if [ -e ${BASE}/${KEY} ]
|
||||
then
|
||||
find ${BASE}/${KEY} -type f
|
||||
find ${BASE}/${KEY} -type f | sed "s@^${BASE}@@g"
|
||||
exit 0
|
||||
else
|
||||
printf "No such key: ${KEY}\n" 1>&2
|
||||
|
Loading…
Reference in New Issue
Block a user