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:
Justin Cormack 2016-04-08 14:03:43 +01:00
parent dba240e1f5
commit 293a1eb23d
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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