mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-24 19:28:09 +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
|
if mobyconfig exists etc/docker
|
||||||
then
|
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
|
fi
|
||||||
if mobyconfig exists network
|
if mobyconfig exists network
|
||||||
then
|
then
|
||||||
|
@ -73,7 +73,7 @@ if [ $1 == "find" ]
|
|||||||
then
|
then
|
||||||
if [ -e ${BASE}/${KEY} ]
|
if [ -e ${BASE}/${KEY} ]
|
||||||
then
|
then
|
||||||
find ${BASE}/${KEY} -type f
|
find ${BASE}/${KEY} -type f | sed "s@^${BASE}@@g"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
printf "No such key: ${KEY}\n" 1>&2
|
printf "No such key: ${KEY}\n" 1>&2
|
||||||
|
Loading…
Reference in New Issue
Block a user