mirror of
https://github.com/Ascend/ascend-docker-runtime.git
synced 2025-11-01 15:22:32 +08:00
16 lines
332 B
Bash
16 lines
332 B
Bash
#!/bin/bash
|
|
DIR=/etc/docker
|
|
if [ ! -d "${DIR}" ]; then
|
|
mkdir ${DIR}
|
|
fi
|
|
SRC="${DIR}/daemon.json.${PPID}"
|
|
DST="${DIR}/daemon.json"
|
|
BINDIR=/usr/bin
|
|
${BINDIR}/ascend-docker-plugin-install-helper add ${DST} ${SRC}
|
|
if [ "$?" != "0" ]; then
|
|
echo "create damon.json failed\n"
|
|
exit 1
|
|
fi
|
|
\mv ${SRC} ${DST}
|
|
echo "create damom.json success\n"
|